-
Notifications
You must be signed in to change notification settings - Fork 114
<em> tags display in autocomplete results #817
Comments
👋 This is a little surprising because by default the |
There's been no customization that I'm aware of. However, I've been wondering if it has something to do with the highlighting prefix? Looked at it this morning and it's set to |
By default the plugin should use the prefixes defined here: https://github.com/algolia/algoliasearch-wordpress/blob/master/templates/autocomplete.php#L99 Those are then replace by Could you compare the code you have with the one of the file linked above? Maybe you are using an older version that had a different behavior? Keep me posted, |
Ran a text compare, and no differences. |
Update: I did a search for anything custom, and we do have a small bit of code in functions.php that is designed not to index pages where the robot index option in the Yoast SEO plugin is set to noindex. Code below:
Could this be having an effect? |
I don't think the above could affect the output. Could you confirm that you do not have a custom autocomplete.php implementation in your theme? |
Correct. We do NOT have a custom autocomplete.php implementation. Code comparison was identical. |
What did you expect to happen?
When searching in autocomplete, I expected tags to display text as italic (due to css styling), but looks like all html tags render as plain text.
What happened instead?
html tags (ie-) display as text and not rendered html.
How can we reproduce this behavior?
search for "r. equi" in the right column search box.
Can you provide a link to a page which shows this issue?
http://staging-thehorse.kinsta.com/
Technical info
The text was updated successfully, but these errors were encountered: