0

基本上我得到了简单的文本作为博客帖子的标题 - >

This is some random title with "quotation" marks 

我得到的结果是这个

This is some random title with

HTML Purifier 将第一个引号之后的所有内容都删掉,我正在寻找一种使用引号的方法,并且不要在它们之后剪掉字符串。

谢谢

4

1 回答 1

1
$clean = htmlspecialchars(
 'This is some random title with "quotation" marks',
  ENT_QUOTES, 
 "UTF-8"
);
于 2014-06-04T09:07:50.513 回答