peterjanes
Member
Posted 1 year 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.
http://wordpress.org/extend/plugins/advanced-excerpt/
any idea how to fix the fact that line breaks show? i want it to be one long paragraph like the default
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.
Sorry, I don't understand how to patch the file. Must I change the two lines (170 and 171) with your code ?
peterjanes
Member
Posted 6 months 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.)
Thank you for your precisions :-)