snimavat / html-cleaner

Html cleaner - Whitelist based html sanitizer grails plugin
3 stars 2 forks source link

Add support for Document.OutputSettings and baseUri #8

Open pmetras opened 9 years ago

pmetras commented 9 years ago

Hello,

It would be nice to add support for the Jsoup.clean() extended call http://jsoup.org/apidocs/org/jsoup/Jsoup.html#clean%28java.lang.String,%20java.lang.String,%20org.jsoup.safety.Whitelist,%20org.jsoup.nodes.Document.OutputSettings%29, with Document.OutputSettings and base Uri. This will let the programmer specify if she wants XML or XHTML output, or the encoding of the resulting text.

Thanks