PDA

View Full Version : what is the equivalent in javacript of PHP's htmlspecialchars($str) / htmlspecialchar



leonidassavvides
03-09-2009, 08:42 AM
what is the equivalent in javacript of PHP's htmlspecialchars($str) / htmlspecialchars_decode($str) ???

Nile
03-10-2009, 01:51 AM
How about these?

htmlspecialchars (http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_htmlspecialchars/)
and
htmlspecialchars_decode (http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_htmlspecialchars_decode/)