In my web app I have a layer with a static HTML content that displays a text.
When I do a search on a page (ctrl+F) and type some text that is contained in the layer
One work-around is to use the CSS content declaration to inject the text on your page. See answer for similar question here