What is the HtmlSpecialChars equivalent in JavaScript?

Apparently, this is harder to find than I thought it would be. And it even is so simple… Is there a function equivalent to PHP’s htmlspecialchars built into JavaScript? I know it’s fairly easy to implement that yourself, but using a built-in function, if available, is just nicer. For those unfamiliar with PHP, htmlspecialchars translates … Read more

A potentially dangerous Request.Form value was detected from the client

Every time a user posts something containing < or > in a page in my web application, I get this exception thrown. I don’t want to go into the discussion about the smartness of throwing an exception or crashing an entire web application because somebody entered a character in a text box, but I am … Read more