Is there a way to substitute words in string with conditions?
For context, I am building a powerapps that allow user to search for keywords in paragraphs of text. The paragraph of text may include hyperlinks, images and table. Here is a sample source code of the HTML Text.
<p><img alt="img>: The Image Embed element - HTML: HyperText Markup Language | MDN" src="https://interactive-examples.mdn.mozilla.net/media/cc0-images/grapefruit-slice-332-332.jpg" /></p><p>I have image and <u><a href="http://google.com"><span style="color:#2980b9">URL</span></a></u> in the content.</p>
I would want the user to be only able to search within the content "I have image and URL in the content".
In the current substitute situation, the user will be searching through the entire HTML text. Hence, if the user happens to search for words that are within the hyperlink URL/ image URL, the hyperlink and image URL will be exposed as the image shown below.

Report
All responses (
Answers (