WordPress.org

Ready to get started?Download WordPress

Forums

WP 2.0 tag and attribute stripping (3 posts)

  1. chipster
    Member
    Posted 8 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?

  2. chipster
    Member
    Posted 8 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 ;-)

  3. aemilius
    Member
    Posted 8 years ago #

    mms:// error

    Code in blog editor:
    <a href="mms : // url">text</a>

    Code after publish:
    <a href=" // url">text</a>

Topic Closed

This topic has been closed to new replies.

About this Topic