The Movable Type Knowledge Base

Limit HTML Tags Overrides Convert Breaks Text Formatting

Question

The Limit HTML Tags setting (and/or the GlobalSanitizeSpec directive) is applied before the Convert Breaks Text Formatting option, instead of the other way around as documented.

Answer

Update (06.26.06)

The status of this behavior has now been changed to "intended by design". Text Formatting options (whether native or introduced by the use of a plugin) should not be allowed to introduce tags which have been explicitly banned by the weblog administrator. So, sanitize settings must be applied last in order to maintain the protection they are meant to provide.

The documentation noted in the original text below has now been updated to reflect the correct behavior of the system.

Original Text of This Article

The documentation for Comment Text Formatting states:

"Note that Text Formatting is executed after unwanted HTML tags are removed, if they are allowed at all."

However, this isn't correct (as of version 3.2 of Movable Type); Text Formatting is being executed first. This behavior is observable under both static and dynamic publishing.

The solution until this issue is resolved is to make sure you've allowed p and br tags in your settings, either globally or on a per weblog basis. More information on how to designate which HTML tags are allowed for comments is outlined in the Knowledge Base article Allow HTML in Comments.

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated; but please do not use the feedback form to submit support requests or questions. We will not respond to or publish such queries submitted through this form. If you have a technical question or problem, visit Movable Type Support.

Yahoo! Small Business web hosting services

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.