This value is then passed on to the htmlentities function.
该值然后被传递到htmlentities 函数。
To make sure the entities are properly encoded, the htmlentities function must be called on each item, as shown in Listing 8.
为了确保实体编码正确,必须在每个项目上调用htmlentities函数,如清单8所示。
To guard yourself against XSS attacks, filter your input through the htmlentities() function whenever the value of a variable is printed to the output.
要防止受到XSS攻击,只要变量的值将被打印到输出中,就需要通过htmlentities()函数过滤输入。
Regardless of the options you pass, the method will pass the string to the PHP function htmlentities and return the result. The options you can pass to the HTML method include.
不管您传递哪个选项,该方法将字符串传递给php函数htmlentities,然后返回结果。
The only special character that has given me a problem is the ampersand, so I have restricted my translation to that one character rather than use a shotgun htmlentities() function approach.
惟一为我带来问题的一个特殊字符是 and符号,所以我只需处理该字符而没有采用htmlentities()函数的方式。
The only special character that has given me a problem is the ampersand, so I have restricted my translation to that one character rather than use a shotgun htmlentities() function approach.
惟一为我带来问题的一个特殊字符是 and符号,所以我只需处理该字符而没有采用htmlentities()函数的方式。
应用推荐