Tutorial htmlEntities for JavaScript

htmlentities() is a PHP function which converts special characters (like JavaScript doesn't have a native version of it. If you just nee...

htmlentities() is a PHP function which converts special characters (like <) into their escaped/encoded values (like <). This allows you to show to display the string without the browser reading it as HTML.
JavaScript doesn't have a native version of it. If you just need the very basics to so that the browser won't interpret as HTML, this should work fine (via James Padolsey and I got a a

Hot in Week

Popular

Archive

item