Stupidly short PHP script to decode HTML special chars. I use it most to convert HTML acent characters (e.g á
) to normal acent characters (e.g á
).
However, it can also be used to convert ALL and every html_entities.
php acents.php "á é í ó ú"
// Which will be decoded to "á é í ó ú".
If no argument is passed, and exception is thrown.
You can learn more about HTML acents here and here.
Happy coding!