user1115652
user1115652

Reputation:

Is it possible to use html purifier without having it close open tags?

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.

Upvotes: 0

Views: 610

Answers (1)

Edward Z. Yang
Edward Z. Yang

Reputation: 26762

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.

Upvotes: 2

Related Questions