Advanced Excerpt
Possible fix for unclosed tags etc. (6 posts)

  1. peterjanes
    Posted 5 years ago #

    There are two typos in version 3.1 that appear to break tag detection. They're both on line 170, so it's an easy patch:

    -                    if(!in_tag || strpos($chunk, '>') !== false)
    +                    if(!$in_tag || strpos($chunk, '<') !== false)

    I suspect this will fix many of the "unclosed tags" and "breaks HTML" issues people are having.


  2. DanMichel
    Posted 5 years ago #

    any idea how to fix the fact that line breaks show? i want it to be one long paragraph like the default

  3. DanCoulter
    Posted 5 years ago #

    I was about to post this fix, but then I saw it was already up. Hopefully it will be fixed in the next update of the plugin.

  4. Li-An
    Posted 4 years ago #

    Sorry, I don't understand how to patch the file. Must I change the two lines (170 and 171) with your code ?

  5. peterjanes
    Posted 4 years ago #

    Replace line 170 with the second line of the patch, omitting the '+' prefix. (In "unified diff" syntax, a '-' prefix indicates the original content, and a '+' prefix indicates the new content.)

  6. Li-An
    Posted 4 years ago #

    Thank you for your precisions :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Excerpt
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic