且构网

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

PHP正则表达式删除HTML文档中的标签

更新时间:2023-02-17 22:57:24

请尽可能避免使用正则表达式, strip_tags() simplexml ,具体取决于您的字符串.

Avoid regular expressions whenever you can, especially when processing xml. In this case you can use strip_tags() or simplexml, depending on your string.