PHP: show HTML comments – PHP Versions
Consider the following PHP function: function show_html_comment($comment) { echo '<!-- ' . $comment . ' -->'; } This function displays HTML comments. But what if inside $comment there is an HTML comment? $comment = '<!-- foo -->'; The result of…