Reputation: 225
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
Upvotes: 0
Views: 247
Reputation: 14649
$clean = htmlspecialchars(
'This is some random title with "quotation" marks',
ENT_QUOTES,
"UTF-8"
);
Upvotes: 1