The htmlentities ( ) function converts characters to html entities 函数的作用是:转换字符为html字符编码。
Converting character data 转换字符数据
Contains classes representing ascii , unicode , utf - 7 , and utf - 8 character encodings ; abstract base classes for converting blocks of characters to and from blocks of bytes ; and a helper class that manipulates and formats string objects without creating intermediate instances of 它包含表示ascii 、 unicode 、 utf - 7和utf - 8字符编码的类;用于来回转换字符块和字节块的抽象基类;以及在不创建