Highlight search terms destroys markup
-
First of all thank you for your great work on this wonderful plugin!
I got a little problem with the search term highlighting. In some cases the markup of the page gets destroyed. To reproduce visit https://www.owc.de/?s=dena and open the second result ChinaContact 05/2012 – dena-Special: Energieeffizienz in China. As you can see there are Span-Tags within the image’s attributes (src, title, …).
<a href="https://www.owc.de/cms/wp-content/uploads/epaper/2012-05-cc-<span style='background-color: #ffff00'>dena</span>-special/index.html?keyword=<span style='background-color: #ffff00'>dena</span>&pn=0" .../>
It seems like there is a simple search and replace on the entire post content.
Is this a known issue? Are there any workarounds?
Cheers!
David
- The topic ‘Highlight search terms destroys markup’ is closed to new replies.