<?php echo htmlspecialchars("'+union+select+1,2,3,4,5--"); ?>
<?php echo htmlspecialchars("'+union+select+1,2,3,4,5--", ENT_QUOTES); ?>