3 ms·
jQuery does not sanitize HTML. This is why jQuery is no longer necessary, even if people think it is.
by halapro 1y ago
jQuery does not sanitize HTML. This is why jQuery is no longer necessary, even if people think it is.
- ulrischa 1y agoThere 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.