Filtering Rich Text dataset content and ignoring html markup

I’m using wixDataFilter to filter a dataset according to content in some fields. Some of the fields are RichText, hence can hold html formatting.

If I have a field that contains the text Some text, and I set the query to eq(“fieldName”, “Some text”), the record is not included in the filter. Presumably this is because the content in the field is something like <em>Some</em> text.

Can I set a parameter so that the filter ignores HTML markup

Wix Editor

There’s no flag to set to ignore HTML markup, you’ll need to strip it from the Collection.