Question

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

Was it helpful?

Solution

$clean = htmlspecialchars(
 'This is some random title with "quotation" marks',
  ENT_QUOTES, 
 "UTF-8"
);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top