xiaozi 2015-05-06 08:20:48

jQuery实现PHP的htmlspecialchars的功能

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

评论

Главная - Вики-сайт
Copyright © 2011-2025 iteam. Current version is 2.147.1. UTC+08:00, 2025-10-31 23:29
浙ICP备14020137号-1 $Гость$