📜  php 剥离标签 - PHP 代码示例

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

代码示例5
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']); ?>