-1
我有下面的结果是怎么过还是给我string(13) "hell'o"o"
,而不是特殊字符ヶ辆不会放弃希望导致
功能下列功能:
private function makeHTMLSpecial($input)
{
return htmlentities(trim($input), ENT_QUOTES);
}
代码:
$new_descriptionCheck = $this->input->post('desc');
$new_description = $this->makeHTMLSpecial($new_descriptionCheck);
如果你添加更多的代码 – 2014-10-02 01:06:44
好奇如何'hell'o“O'有8个符号,但它说,它在13个将是有益也许它只是在做它应该做的事情,但是你正在浏览器中看着输出结果,而没有看到。 – Havenard 2014-10-02 02:21:59
'string(13)' - 它正好给出***想要的结果 – Boann 2014-10-02 02:22:59