& " into safe text before printing $safeName = htmlspecialchars($name, ENT_QUOTES, 'UTF-8'); echo "
We will reply to you by email.
' . htmlspecialchars($error) . '