Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
padjo
38 days ago
|
parent
|
context
|
favorite
| on:
Element: setHTML() method
Sanitize as close as possible to where it is used is usually best, then you don’t have to keep track of what’s sanitized and what’s not sanitized for very long.
(Especially important if sanitation is not idempotent!)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
(Especially important if sanitation is not idempotent!)