Question

I am building a page dynamically and I need to run purifier on snippets just to avoid any scripting, however the div's are not yet closed and other content (that cannot be purified) is later inserted in it. So I would like to run purifier on the individual bits, however it automatically closes that tags, which is a no go zone in that case.

I can't find config options that allow me to disable closing open tags.

Was it helpful?

Solution

Yes, as you have noticed, it's not possible to disable. It's also a fairly important component, as it prevents user content from leaking into the rest of the page.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top