Allow HTML tags in comments

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Anson
Regular
Posts: 24
Joined: Thu Apr 16, 2009 7:05 am

Re: Allow HTML tags in comments

Post by Anson »

judebert wrote:
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.
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.)
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
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Re: Allow HTML tags in comments

Post by judebert »

Hey, I'm the king of "when I get around to it"!

Thanks for looking into it.
Judebert
---
Website | Wishlist | PayPal
Post Reply