📜  php clean html tags - PHP 代码示例

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

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