That's an interesting idea - "HTML in a <code> block should be be transformed into entities" - and it seems possible to implement. I'll take a poke at it when I have some free time... no promises on when though.judebert wrote:Sounds like I'd have to modify the BBCode (or other markup) plugin to escape the HTML that should be escaped, like in code blocks. Does HTML Purifier already provide some method for this? (Probably just HTML escapes.)Anson wrote: My plugin would apply the actual HTML, or strip it (if it fell outside acceptable HTML). HTML to be displayed would have to be escaped, just as if you were editing a regular web page that displayed HTML tags, mainly using < in place of <. Off the top of my head, I can't think of another good heuristic to somehow apply some HTML, and transform other HTML into entities for display, without escaping one or the other to show they should be applied or transformed.
Allow HTML tags in comments
Re: Allow HTML tags in comments
Re: Allow HTML tags in comments
Hey, I'm the king of "when I get around to it"!
Thanks for looking into it.
Thanks for looking into it.