The search term in the results breaks the HTML
-
When searching for a term, the term is highlighted in the results by an
EM
tag. (I’ve simplified this usinghighlightPreTag
andhighlightPostTag
in thealgolia_search_params
filter.) However, theEM
tag is added within HTML attributes (e.g. theIMG
andA
tags), which breaks the page’s HTML.Can this be fixed, or is there a way to completely remove the highlighting altogether? I’ve found
attributesToHighlight
but it’s unclear how to modify this using WordPress filters in the PHP code.The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.