有没有像''的东西?
htmlentities ($string, ENT_QUOTES);
试试这个:
'
看到它在行动(不太多看):'
有'
。
这是否有PHP函数? – user198729 2009-12-29 08:27:20
我不这么认为,谷歌发现这个:http://matthewjamestaylor.com/blog/convert-special-characters-to-html-entities-between-code-tags – monksy 2009-12-29 08:29:03
您也可以使用'
Character Entity Number Entity Name Description
" " " quotation mark
' ' ' apostrophe(does not work in IE)
& & & ampersand
< < < less-than
> > > greater-than
请注意,它只是',不被广泛支持。 – Ms2ger 2009-12-29 10:23:53
我已经提到它在大括号..它不支持IE .. – 2009-12-29 13:17:00
你想接受的答案。如果他们满足.. – 2009-12-29 08:32:42
你确定你的系统有报价的错误,它不只是一个编程错误?它是你的服务器还是客户端的错误? – 2009-12-29 08:35:49
@Mark Byers,在我的客户端。 – user198729 2009-12-29 08:37:39