The MU forums have moved to WordPress.org

How to use HTML in a plugin? (2 posts)

  1. AtleGrimseid
    Member
    Posted 17 years ago #

    using wpmu 2.8.2... ?

    Yesterday i started this thread in these forums, and it seems like my plugins won't take any html because of some filter added to the "site_option();" function in wpmu 2.8. This filter was not in 2.7.

    The plugins i have use the following code.:

    <textarea name="test" type="text" rows="1" wrap="soft" id="test" style="width: 95%; background:#EAF5FE;"/><?php echo get_site_option('test') ?></textarea>

    update_site_option( "test", $_POST[ 'test' ] );

    When I type in any kind of html in that textarea it gets stripped out. A link like <a href=""> change to <a href=\"\"> and about any other html will not work at all.

    Is there anything I can do to make my plugins take the html, and actually just remove the filter? I was thinking something like remove_filter('blablaba', 'blablabla'); but I really just don't now what to use... ?

    Hope anyone can help me out with this one. :)

  2. AtleGrimseid
    Member
    Posted 17 years ago #

    Update, I just had the solution in this thread. :)

About this Topic

  • Started 17 years ago by AtleGrimseid
  • Latest reply from AtleGrimseid