Exclude html tags with class from highlighting
-
Hello,
I’m using Relevanssi feature ‘Highlight query terms in documents’ which is great.
For code snippets I’m using the plugin Enlighter. Unfortunately, if the query term is part of the code snippet the html is outputted instead of highlighting the term.
Example for search term ‘system’:
get <span style="background-color: #dbeff2">system</span> ....
It’s ok that there is no highlighting but the html code is not ok. Is there a way to tell Relevanssi not to highlight e.g. between<pre class="EnlighterJSRAW">
and</pre>
?Best regards
saNNNy
- The topic ‘Exclude html tags with class from highlighting’ is closed to new replies.