Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[plugin] [ORPHAN] jsh_html_comments: Allowing commenting using HTML
I’ve written a plugin to manage this; it works by translating the commenter’s HTML tags to those Textile equivalents currently allowed in comments, prior to the comment’s being evaluated by TXP. It involves a small hack, but a hack is a hack so if you have reason to never alter source, you’ll want to not fool with this.
There are two tags, txp:jsh_comments and txp:jsh_comments_form. If you’re already using plugins that replace txp:comments and txp:comments_form, and there’s lots that do, you’ll probably not be able to convince mine to play nice with the others. I would prefer to do this as a callback, but all the callback points I could find occurred after the HTML tags were stripped.
Anyway, this seemed the most TXP-friendly way of managing this issue that I could suss. I’m using it now; if it’s of use to anyone else, download it here.
Offline
Re: [plugin] [ORPHAN] jsh_html_comments: Allowing commenting using HTML
Does this work with 4.0.4? Is this really the only way to allow html tags in comments (ie converting them to textile and then back to html)?
Yes, I have tried turning it off and on.
Offline