php detect quotes or brackets in a string code example
Example 1: php heredoc
$output = <<<HTML
<p>Lorem ipsum dolor sit amet consectetur<p>
<a href="{$foobar}">click here</a>
HTML;
Example 2: php quotations within quotations
<?php
echo '<span onclick="$(this).addClass(\'selected\');"> </span>';
?>