How to remove HTML tags from showing on search results?

Many of my HTML pages and posts have HTML markup in the titles like { ) or {
Please see

Type ‘studio’ in the search box. The search results all show HTML tags.
How can I keep the Algolia search results from showing the HTML tags?
Users only need to see the text.

I did a search on the community and could not find this topic anywhere.

Thank you kindly,
Sandip Mehta

Hi there,

I would be happy to help! Could you give me an example query that triggers the undesired behavior? I wasn’t able to!


I’d like that answer too. I did it in the end with the transformData
transformData: {
item: function (data) {
data.body = $(data.body).text();
return data;