SanitizeBlogs 2 is a variant of the mt-plugin-SanitizeBlogs by Six Apart. While the Six Apart version sanitizes blogs based upon a blog URL prefix (useful for blogs published under the Community Platform), the present variant is more useful for a blog farm where you want all blogs to be sanitized with the ability to refine or prevent the sanitization for selected blogs.
Specify HTML tags and attributes allowed in entry/page fields based upon system or blog settings.
Functions in a similar manner as, but is distinct from, the GlobalSanitizeSpec configuration directive.
- MT 4.x
- MT 5.x
- Melody 1.x
- define list of allowed html tags allowed in the following fields:
- specify the list at both system- and blog-level
- capability to exclude a blog from the sanitization
Allowed Tags and Attributes
List of allowed HTML tags and tag attributes. Allowed Tags should be comma-separated. Allowed tag attributes should be space-separated and listed after the tag which they can be used with.
Restrictive sample value (allows
class attributes on the
a href class,b,cite,code class,em,i,img,li,ol,pre,strike,strong,ul
Relaxed sample value that works well for regular blogs to cleanup the MS Word tag soup:
a href target title,b,i,br/,p,strong,em,ul,ol,li,blockquote,pre,img *,div style,object *,param *,embed *
The list can be defined at both system- and blog-level. The system list will be applied by default to all blogs in the system, unless for blogs with their own list or that are specifically excluded from the sanitization. If the system list is empty, then only blogs that have a list defined at their level will be sanitized.
onevent’) for this blog, comma-separated (e.g. onclick,onsubmit,onfocus).
- Download SanitizeBlogs2.
- Uncompress and move the SanitizeBlogs2 directory to the MT
pluginsdirectory. More in-depth plugin installation instructions.
- In the plugin preferences at the system-level enter a list of allowed tags to apply by default to all blogs. Optionnaly, refine this list or exclude specific blogs at the blog-level.
Installing both variants of the Six Apart SanitizeBlogs and Ubiquitic SanitizeBlogs2 plugins on the same MT installation has not been tested. Their plugin keys are different, so their respective preferences will not clash, however they will act concurrently in an unpredictable order on blogs sanitized by SanitizeBlogs if you define a blog-level list in SanitizeBlogs2. You may want to leave the SanitizeBlogs2 system-level list empty, and define a list on selected blogs.
Ce plugin parle français. ;-)
- 1.2.2 (Current): Properly sanitize pages in addition to entries.
This free software is provided as-is WITHOUT ANY KIND OF GUARANTEE; you can redistribute it and/or modify it under the same terms as Perl itself.