MT 2.6.2 and Comments
Posted February 20th, 2003 @ 05:09pm by Erik J. Barzeski
MovableType 2.6.2 seems to be stripping the smileys from my blog's comments. Just the comments - they work fine in my regular posts:
O:-) >:-o 😐 😀 :-O 🙁 B-) 🙂 😛 😉 :-zzz
I'm not sure what's going on there: comments are set to "Convert Line Breaks" by default, HTML is turned off, auto-link URLs is on, and…
I'm using Brad Choate's MTMacros to transform a simple colon-dash-parenthese into this: :-).
Anyone have any ideas???
7 Responses to "MT 2.6.2 and Comments"
Posted 20 Feb 2003 at 6:06pm #
From the list of new features: "Sanitize, for cleaning up visitor-submitted data (thanks to Brad Choate)." Perhaps this is converting entities in comments in such a way that it breaks your smiley macros.
Posted 20 Feb 2003 at 6:09pm #
It may be, but the documentation for Sanitize ( http://www.movabletype.org/docs/mtmanual_sanitize.html ) doesn't say much about things with colons, parentheses, semicolons, and dashes.
I tried turning "Convert Line Breaks" off (setting it to "None") but that didn't help either. Hmm.
Posted 20 Feb 2003 at 11:28pm #
My guess is Sanitize too. Try setting sanitize="0".
Posted 20 Feb 2003 at 11:29pm #
😉 Sanitize strips out img tags.
Posted 20 Feb 2003 at 11:58pm #
But you can override the defaults to allow img tags
http://www.movabletype.org/docs/mtmanual_sanitize.html
Posted 21 Feb 2003 at 12:13am #
I've now set sanitize="0", but I think that's silly.
MTMacros should be applied after "sanitization" which would skip any colon-dash-paren (to make a smiley) because it's not HTML. Thus, _my_ HTML - which doesn't need to be sanitized unless I'm a moron who can't write a simple img tag - is being sanitized.
In other words, the process _should_ be: sanitize, then apply macros. How can I do this? I'm not pleased with sanitize="0" because that turns of all sanitization.
Posted 24 Feb 2003 at 1:54pm #
I've now set comments to allow some HTML tags and put img in the list of allowed tags. I'm not comfortable not sanitizing: people could have put PHP scripts in or something.