Remove HTML Tags in Haskell -


i have string such

<b>vitamin a</b><br>chloe braided halter swim top, 

using text.html.tagsoup attempting remove html , have

"vitamin chloe braided halter swim top"  

using

import qualified text.html.tagsoup ts  ts.parsetags "&lt;b&gt;vitamin a&lt;/b&gt;&lt;br&gt;chloe braided halter swim top&#44;"  [tagtext "<b>vitamin a</b><br>chloe braided halter swim top,"] 

how can strip html tags ?

does have text.html.tagsoup? seems hakyll.web.html better fit: https://hackage.haskell.org/package/hakyll-4.1.2.1/docs/hakyll-web-html.html

there have function seems want:

striptags :: string -> stringsource

strip html tags string


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -