xiaozi 2015-05-06 08:20:48
jQuery实现PHP的htmlspecialchars的功能
var mytext = "<hello http://tool.lu>";
$("<div/>").text(mytext).html();
xiaozi 2015-05-06 08:20:48
jQuery实现PHP的htmlspecialchars的功能
var mytext = "<hello http://tool.lu>";
$("<div/>").text(mytext).html();