How to query for all occurences of <br />?
Hi,
I need to query for all occurrences of <br />, <br/>, or <br /> in my text components, but my search is not returning any results.
Here is the query I am using:
SELECT * FROM [nt:base] AS n WHERE n.[sling:resourceType]='xxx/components/content/text' AND CONTAINS(n.text, '<br') AND ISDESCENDANTNODE([/content])
However, when I search like this:
SELECT * FROM [nt:base] AS n WHERE n.[sling:resourceType]='xxx/components/content/text' AND CONTAINS(n.text, 'br') AND ISDESCENDANTNODE([/content])
I do get results.
Could you please help me figure out why the first query is not working and how I can correctly search for <br />, <br/>, or <br />? Between br and / there can be one or more space.
Thank you!