Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ulrischa
28 days ago
|
parent
|
context
|
favorite
| on:
Element: setHTML() method
There is the jquery bashing again. let sanitizedHTML = $('<div>').text(unsanitizedHTML).html();
wccrawford
28 days ago
[–]
You can 100% do that same thing without jQuery. It's not even complicated.
And that is
not
what the new .setHTML() does.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: