Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

This plugin is no longer supported in Movable Type 8 and later.

Sanitize Blogs, a plugin for Movable Type

Overview

Specify HTML tags and attributes allowed in entry/page fields based upon blog URL prefix.

Functions in same manner as, but is distinct from, the GlobalSanitizeSpec configuration directive.

Requirements

  • MT 4.x

Features

  • define list of allowed html tags allowed in the following fields:
    • Title
    • Body
    • Extended
    • Excerpt
    • Keywords
  • specify domain prefix for which

Documentation

Allowed Tags

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.

Sample value (allows href and class attribute on html a tag):

a href class,b,cite,code class,em,i,img,li,ol,pre,strike,strong,ul

Site URL Prefix

Non-allowed tags will be removed from entries created in blogs which have a Site URL beginning with the following URL. Must begin with "http://" or "https://".

Sample URL:

http://www.domain.com/user-blogs/

Installation

  1. Move the SanitizeBlogs plugin directory to the MT plugins directory.

Should look like this when installed:

$MT_HOME/
    plugins/
        SanitizeBlogs/

More in-depth plugin installation instructions.

Support

This plugin is not an official Six Apart release, and as such support from Six Apart for this plugin is not available.

About

A Movable Type plugin to specify HTML tags and attributes allowed in entry/page fields based upon blog URL prefix.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages