[Plugin: Relevanssi – A Better Search] highlights happening inside script tags
-
I’ve got a page with some in-line javascript in it that crashes if someone arrives at the page when searching for a term that’s inside the script. For example, if someone is searching for bob:
bob <script> var bob = 3; </script>
Should end up as
<em>bob</em> <script> var bob = 3; </script>
Instead, it’s
<em>bob</em> <script> var <em>bob</em> = 3; </script>
In the meantime, I’ve disable highlighting, but any chance of updating relevanssi_highlight_terms() so it avoids everything between script tags altogether?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Relevanssi – A Better Search] highlights happening inside script tags’ is closed to new replies.