0

Basicly i got the simple text to be put in a as title of BLOG post ->

This is some random title with "quotation" marks 

the result i get is this

This is some random title with

HTML Purifier cuts everything after 1st quotation mark, i am looking for a way to have quotation marks and no too cut off the string after them.

Thanks

4

1 に答える 1

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