$text = "test"; //works
$text = "this's"; //not working
$string = " -background transparent" . " -font '{$font}'". " -pointsize {$font_size}". " -gravity center label:'".$text."'".$stroking;
How to fix this?
Lable single quotes problem
Re: Lable single quotes problem
It looks like you use imagick from command line.
and you need escape you single quote with \
try $text = "this\'s";
or you can use addcslashes or similar function.
and you need escape you single quote with \
try $text = "this\'s";
or you can use addcslashes or similar function.
Make movie online for free, easy&fast.
Re: Lable single quotes problem
Thanks!