HTML,PHP – Escape ” symbols while echoing

Use htmlspecialchars.

<?php
    echo htmlspecialchars("abc & < >");
?>

Leave a Comment