grokify / html-strip-tags-go

export stripTags from html/template as strip.StripTags
BSD 3-Clause "New" or "Revised" License
138 stars 35 forks source link

there is a badcase #5

Open zhaolunallen opened 4 years ago

zhaolunallen commented 4 years ago

there is a badcase strip.StripTags(<tex>0<x<2</tex>) get 0 expect 0<x<2

hailaz commented 11 months ago

must use &lt; replace< <tex>0&lt;x&lt;2</tex>