Source: "; echo "
"; echo htmlentities($_POST['intext']) . "
"; echo "
"; echo htmlspecialchars(htmlspecialchars($_POST['intext'])); } ?> intext = "hello á there" Result (as shown on the browser): "Processed text &á: hello á there hello á there" Result (source code from browser): "Processed text &á:

hello á there

hello á there"