Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacement does not replace with HTML properly #45

Open
barrychapman opened this issue Jun 12, 2016 · 2 comments
Open

Replacement does not replace with HTML properly #45

barrychapman opened this issue Jun 12, 2016 · 2 comments

Comments

@barrychapman
Copy link

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?

@padolsey
Copy link
Owner

padolsey commented Jun 12, 2016

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/

@onyx4
Copy link

onyx4 commented Mar 19, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants