4 ms·
There is the jquery bashing again. let sanitizedHTML = $('<div>').text(unsanitizedHTML).html();
by ulrischa 1y ago
There is the jquery bashing again.
let sanitizedHTML = $('<div>').text(unsanitizedHTML).html();
- wccrawford 1y agoYou can 100% do that same thing without jQuery. It's not even complicated. And that is not what the new .setHTML() does.