1 line of code: How to convert html special chars
const htmlSpecialChars = str =&gt; str.replace(/[&amp;"'&lt;&gt;]/g, (i) =&gt; ({ "&amp;":...
Tags: javascript, webdev, productivity, codequality