Forums

Advanced Excerpt
Use words doesn't work correctly with HTML attributes (1 post)

  1. Nate Mackey
    Member
    Posted 2 years ago #

    When "Use Words" is checked, the regexp used to split the text uses spaces as a deliminiter. As a result, the plugin doesn't correctly detect tag boundaries and you can end up with invalid html. Using ~(\s+|</?[^>]+>)~ instead of /[\s]+/ on lines 160 and 164 solves the problem.

    http://wordpress.org/extend/plugins/advanced-excerpt/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic