linkifyjs icon indicating copy to clipboard operation
linkifyjs copied to clipboard

Linkify html converts &lt; to <

Open richie-south opened this issue 3 years ago • 0 comments

Linkify converts &lt;to < by default. Our server sends html but sanitise script tags by replacing < with &lt; This so we can render the html as html but only display scripts as texts instead of xxs ourself. But with latest linkify-html v3 it converts &lt; to <which creates a functional script tag. I don't see any working option to ignore &lt; or am i missing something?

Example replit

richie-south avatar Nov 18 '21 15:11 richie-south