tips and tricks for movable type

sanitize plugin
October 05, 2002

Get thee post haste to Brad Choate's site and pick up the MT Sanitize plugin!

Apply to all of your <MTCommentBody> and <MTCommentPreviewBody> tags.

<MTCommentBody sanitize_html="a,b,i,br,p,pre,tt,ul,li,ol,strong,em,blockquote">

<MTCommentPreviewBody sanitize_html="a,b,i,br,p,pre,tt,ul,li,ol,strong,em,blockquote">

Actually, you can put whatever HTML tags you want to allow in comments in there. This keeps people from doing malicious things to your website if you allow HTML in comments. Oh yes, this is a wise plugin to have!

Update 04.04.03: The latest version of Movable Type integrated this plugin - yay!

Related Links:

MT Manual on Plugins
• Original post on the MT support forum

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

TrackBack: 1
(URL: http://www.thegirliematters.com/sf/mt-track.cgi/100)

» /bradchoate/ is the funniest subdirectory on my server.
Excerpt: OH MY GOD IT DIDNT WORK! It worked in the "preview" thing, I swear!!! If you didn't watch the Amazing
Weblog: Live in the Delirious Cool
Tracked: 10.05.02 09:02 PM