chipster
Member
Posted 3 years ago #
Here's my dilemma with WP 2.0;
When posting an article via XMLRPC (ala Ecto), my tag classes/attributes, and some tags get stripped.
Examples...
Code in blog editor:
<div class="foo"><cite>Bar</cite></div>
Code after publish:
<div>Bar</div>
But editing a post directly in the WP admin post editor works fine (no stripping). What gives?
chipster
Member
Posted 3 years ago #
Answering my own post for the benefit of others:
I had to add a couple of arrays ("allowedposttags") to my wp-includes/kses.php file.
I added them to the beginning of the array, like this;
$allowedposttags = array(
'cite' => array(),
'div' => array('class' => array(), 'align' => array())
Completely non-elegant ;-)
aemilius
Member
Posted 3 years ago #
mms:// error
Code in blog editor:
<a href="mms : // url">text</a>
Code after publish:
<a href=" // url">text</a>