escape single quotes in laravel code example Example: addslashes php $str = addslashes('What does "yolo" mean?'); echo($str);