findAndReplaceDOMText
findAndReplaceDOMText copied to clipboard
Replacement does not replace with HTML properly
When doing a replacement - and using some HTML as the replacement text - the text appears to be replaced with entities, instead of actual html.
Is this by design? Is there a workaround?
This is by design. To replace DOM with DOM/HTML, you can return a DOM node from the replace function. E.g. https://jsfiddle.net/z7Lkw758/
Is there a way to find/replace HTML text, say a phone number like
a href="tel:2223334444"
and replace the phone number for something else?