Closed fregante closed 7 years ago
Passing raw text and getting HTML can cause XSS: https://github.com/sindresorhus/refined-github/issues/510
linkify-urls could return a DocumentFragment like:
linkify-urls
DocumentFragment
"textNode", Node(a[href=link](link)), "textNode"
👍 Good idea. I think it should be a separate method though, as the current way can be useful in non-browser environments.
Passing raw text and getting HTML can cause XSS: https://github.com/sindresorhus/refined-github/issues/510
linkify-urls
could return aDocumentFragment
like: