The signature as well the posts both are filtered using the same whitelist.
Below is the list of supported tags:
'p' => array('style', 'class', 'align'),
'div' => array('style', 'class', 'align'),
'span' => array('style', 'class'),
'br' => array('style', 'class'),
'hr' => array('style', 'class'),
'h1' => array('style', 'class'),
'h2' => array('style', 'class'),
'h3' => array('style', 'class'),
'h4' => array('style', 'class'),
'h5' => array('style', 'class'),
'h6' => array('style', 'class'),
'strong' => array('style', 'class'),
'em' => array('style', 'class'),
'i' => array('style', 'class'),
'b' => array('style', 'class'),
'u' => array('style', 'class'),
'strike' => array('style', 'class'),
'del' => array('style', 'class'),
'ol' => array('style', 'class'),
'ul' => array('style', 'class'),
'li' => array('style', 'class'),
'code' => array('style', 'class'),
'pre' => array('style', 'class'),
'sup' => array('style', 'class'),
'sub' => array('style', 'class'),
'marquee' => array('style', 'class'),
'a' => array('style', 'class', 'href', 'target'),
'img' => array('style', 'class', 'src', 'height',
'width', 'alt', 'longdesc', 'title',
'hspace', 'vspace'),
'table' => array('style', 'class', 'border-collapse',
'cellspacing', 'cellpadding'),
'thead' => array('style', 'class'),
'tbody' => array('style', 'class'),
'tfoot' => array('style', 'class'),
'tr' => array('style', 'class'),
'td' => array('style', 'class',
'colspan', 'rowspan'),
'th' => array('style', 'class', 'scope', 'colspan',
'rowspan'),
'q' => array('style', 'class', 'cite'),
'cite' => array('style', 'class'),
'abbr' => array('style', 'class'),
'blockquote' => array('style', 'class'),
'body' => array()
I guess I would prefer a system like what posts use, where it stores both the source markdown for editing and the rendered HTML for display in the database
If we get more requests for this, we will definitely add it.
The signature as well the posts both are filtered using the same whitelist.
Below is the list of supported tags:
'p' => array('style', 'class', 'align'),
'div' => array('style', 'class', 'align'),
'span' => array('style', 'class'),
'br' => array('style', 'class'),
'hr' => array('style', 'class'),
'h1' => array('style', 'class'),
'h2' => array('style', 'class'),
'h3' => array('style', 'class'),
'h4' => array('style', 'class'),
'h5' => array('style', 'class'),
'h6' => array('style', 'class'),
'strong' => array('style', 'class'),
'em' => array('style', 'class'),
'i' => array('style', 'class'),
'b' => array('style', 'class'),
'u' => array('style', 'class'),
'strike' => array('style', 'class'),
'del' => array('style', 'class'),
'ol' => array('style', 'class'),
'ul' => array('style', 'class'),
'li' => array('style', 'class'),
'code' => array('style', 'class'),
'pre' => array('style', 'class'),
'sup' => array('style', 'class'),
'sub' => array('style', 'class'),
'marquee' => array('style', 'class'),
// Took out 'rel' and 'title', because we're using those below
'a' => array('style', 'class', 'href', 'target'),
'img' => array('style', 'class', 'src', 'height',
'width', 'alt', 'longdesc', 'title',
'hspace', 'vspace'),
'table' => array('style', 'class', 'border-collapse',
'cellspacing', 'cellpadding'),
'thead' => array('style', 'class'),
'tbody' => array('style', 'class'),
'tfoot' => array('style', 'class'),
'tr' => array('style', 'class'),
'td' => array('style', 'class',
'colspan', 'rowspan'),
'th' => array('style', 'class', 'scope', 'colspan',
'rowspan'),
'q' => array('style', 'class', 'cite'),
'cite' => array('style', 'class'),
'abbr' => array('style', 'class'),
'blockquote' => array('style', 'class'),
// Stripped out
'body' => array()//,
>I guess I would prefer a system like what posts use, where it stores both the source markdown for editing and the rendered HTML for display in the database
If we get more requests for this, we will definitely add it.
edited Nov 12 '14 at 7:46 am