Need to remove the html tags from the description


#1

The description text in the search results showing html tags, I found the template file the description displaying by using this {{{ _highlightResult.description.value }}}, How can I remove the html tags from the description.


#2

Hello,

With the InstantSearch library, it’s possible to change the content of a hit before displaying it with the ‘transformItems’ option. In your case you could use ‘transformItems’ to remove all html tags from the description.

You can learn more about this in the documentation: https://www.algolia.com/doc/api-reference/widgets/hits/js/#widget-param-transformitems


#3

am using magento 2 Module, can you please explain me where I should edit.