📜  从字符串 php 代码示例中删除 html

📅  最后修改于: 2022-03-11 14:53:46.276000             🧑  作者: Mango

代码示例3
Test paragraph.

Other text'; echo strip_tags($text); //Test paragraph. Other text // Allow

and echo strip_tags($text, '

'); //

Test paragraph.

Other text // as of PHP 7.4.0 the line above can be written as: // echo strip_tags($text, ['p', 'a']); ?>