php compare string with apostrophe code example
Example 1: addslashes php
$str = addslashes('What does "yolo" mean?');
echo($str);
Example 2: php quotations within quotations
<?php
echo '<span onclick="$(this).addClass(\'selected\');"> </span>';
?>