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()函数过滤输入。
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()函数过滤输入。
应用推荐