htmlspecialchars

(PHP 4, PHP 5, PHP 7, PHP 8) htmlspecialchars — 将特殊字符转换为 HTML 实体

PHP 手册

htmlspecialchars_decode

(PHP 5 >= 5.1.0, PHP 7, PHP 8) htmlspecialchars_decode — 将特殊的 HTML 实体转换回普通字符

PHP 手册

htmlentities

(PHP 4, PHP 5, PHP 7, PHP 8) htmlentities — 将字符转换为 HTML 转义字符

PHP 手册

html_entity_decode

(PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) html_entity_decode — Convert HTML entities to their corresponding characters

PHP 手册

strip_tags

(PHP 4, PHP 5, PHP 7, PHP 8) strip_tags — 从字符串中去除 HTML 和 PHP 标记

PHP 手册
若无必要,禁止使用。