Support » Plugin: Advanced Excerpt » [Plugin: Advanced Excerpt] Strip all HTML tags

  • Hi,

    I am aware that keeping the HTML tags it is one highlighted feature of this plugin, but I need them to be stripped. Is there are way to just strip all? allowed_tags seems to have the option “_all”, but when I tried this for exclude_tags it didn’t seem to work.
    Strangely, trying to strip hyperlinks also didn’t work when I manually set “exclude_tags=a”.

    Thanks in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi urbanty,

    I’m not sure about exclude_tags, I’m currently working on wordpress 3.31 and the_advanced_excerpt version 4.1.1, I did take a quick look in the plugin script, it seems like exclude_tags is not in the array anymore? or I might be wrong. But, this is the way that I found out how to filter the html tags. You can use allowed_tags and put in the tags you want to display your excerpt.

    <?php the_advanced_excerpt(“length=20&allowed_tags=p,a”); ?>

    Hope this information helps 😉


    Hi Xavien,

    thanks for your reply.
    I tried you suggestion, but didn’t have success. In fact, I realized that the my custom settings when calling the plugin is apparently completely ignored.

    It looks like this:

    Any ideas what’s wrong?

    allowed_tags is working for me, exclude_tags not 🙁

    WP 3.3.1
    AE 4.1.1

    exclude tags only works for me if I put this in my functions…


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Advanced Excerpt] Strip all HTML tags’ is closed to new replies.