yesodweb / haskell-xss-sanitize

prevent XSS attacks by sanitizing html (this is different then escaping!)
Other
20 stars 15 forks source link

Export balanceTags helper #3

Closed wuzzeb closed 11 years ago

wuzzeb commented 11 years ago

Hi,

I want to insert additional filtering but still want safe tags and balancing. With filterTags and safeTags, I can insert custom filtering but without the balance. So I exported a balanceTags function. While I was there, I cleaned up the documentation a little bit.

There is no functionality change.

gregwebs commented 11 years ago

Looks good. I will give @snoyberg a chance to review.

snoyberg commented 11 years ago

Looks fine to me, I think I needed something like this the other day too.