For special characters like **áéí**, I can call `htmlentities()`:

```
$mycaption = htmlentities($mycaption, ENT_QUOTES);

```

To get the corresponding html entities: 

```
&aacute;&eacute;&iacute;

```

How can I reverse this back to **áéí** ?