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

Option to not link URL-looking values #73

Closed
john-kurkowski opened this issue Apr 24, 2019 · 2 comments
Closed

Option to not link URL-looking values #73

john-kurkowski opened this issue Apr 24, 2019 · 2 comments

Comments

@john-kurkowski
Copy link

I have JSON with invalid or potentially unsafe URLs I don't want users to click. What do you think about an option to turn off this library's a[href] elements? Or perhaps a hook into node creation?

@john-kurkowski
Copy link
Author

To work around this, I can use MutationObserver to manually convert as to spans. Seems like brittle, private API though.

@mohsen1
Copy link
Owner

mohsen1 commented Jul 6, 2019

I think this use case is out of scope of this project. It's open source, so feel free to fork and add that custom behavior! ❤️

@mohsen1 mohsen1 closed this as completed Jul 6, 2019
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

2 participants