3 ms·
Since 5 years everybody says Jquery us no longer necessary. But really baisc function like this take a long time for replacing Jquery
by ulrischa 1y ago
Since 5 years everybody says Jquery us no longer necessary. But really baisc function like this take a long time for replacing Jquery
- halapro 1y agojQuery 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.