Forums

using KSES to strip html ? (2 posts)

  1. rwilki
    Member
    Posted 5 months ago #

    I just stumbled upon the power of the kses filter. I know I'm late. I would like it to make some exceptions, if that's possible. I'm trying with variables, but it's just not working.

    I'm using this on a child theme and adding the filter for "the_content" only. My problem is that I'd like it to keep , <h1 - h5>, <div>, and , and

    Any ideas? Basically, I'm trying to use this to remove tables, tr, and td...

    Thanks

  2. rwilki
    Member
    Posted 5 months ago #

    the forum stripped out some of my code.

    I'd like to use this to
    keep:

    <strong>, <div>, <a>, <a href>, <mailto:> <span>

    I'm trying to lose <table> <tr> <td>

    Thanks...

Reply

You must log in to post.

About this Topic

Tags