• Resolved Sany

    (@sannny)


    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

    • This topic was modified 6 years, 4 months ago by Sany.
    • This topic was modified 6 years, 4 months ago by Sany.
Viewing 16 replies (of 16 total)
Viewing 16 replies (of 16 total)
  • The topic ‘Exclude html tags with class from highlighting’ is closed to new replies.