xiaozi 2015-05-06 08:20:48

jQuery实现PHP的htmlspecialchars的功能

var mytext = "<hello http://tool.lu>";
$("<div/>").text(mytext).html();

评论

首页 - Wiki
Copyright © 2011-2024 iteam. Current version is 2.130.1. UTC+08:00, 2024-07-27 09:24
浙ICP备14020137号-1 $访客地图$