PHP removes html tags to obtain input plain text document strip_tags
Release: 2023-02-28 20:52:01
Original
1818 people have browsed it
<?php
$text = '
Test paragraph.
Other text';
echo strip_tags($text);
echo "\n";
// Allow
echo strip_tags($text, '
');
?> Copy after login The above example will output:
Test paragraph. Other text
Test paragraph. Other text |
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
-
2019-04-16 16:04:28
-
2020-09-15 11:26:00
-
2020-09-10 14:26:14
-
2020-09-08 11:06:15
-
2020-09-09 09:46:36
-
2020-10-12 14:51:04
-
2020-09-10 14:40:02
-
2019-04-24 16:20:55
-
2020-10-13 11:40:03
-
2019-04-15 14:06:21