- var_dump: documentation ( source)
- htmlspecialchars_decode: documentation ( source)
- htmlspecialchars: documentation ( source)
<?php
$x = "Umläüts & test!";
$y = htmlspecialchars($x);
var_dump(htmlspecialchars($x));
var_dump(htmlspecialchars($y));
var_dump(htmlspecialchars_decode($x));
var_dump(htmlspecialchars_decode($y));
$converted = htmlspecialchars($y);
var_dump('Y', $converted);
do {
$oldConverted = $converted;
$converted = htmlspecialchars_decode($converted);
} while( $converted != $oldConverted );
var_dump($converted);