且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从javascript字符串中删除HTML标记

更新时间:2023-08-16 21:16:34

为什么不让jQuery这样做?

Why not just let jQuery do it?

var content = "<p>Dear sms,</p><p>This is a test notification for push message from center II.</p>";

var text = $(content).text();