by hyperhopper · 3y ago · 0 comments
I wholeheartedly disagree. Occam's razor:
Doing it the right way takes knowledge that string substitution is wrong. Many people don't have that.
Also, it's hard(er) than the simple string solution. It takes knowledge of dom APIs, or frameworks, or other things that a fresh grad wouldn't intuitively create in 5 seconds to insert a value.
Seems fair.
Get real, the whole point is some strings in HTML are HTML, and some are malicious code.
You're being adversarial to equate the two.