I want to convert all texts in a string into html entities but preserving the HTML tags, for example this:

```
<p><font style="color:#FF0000">Camión español</font></p>

```

should be translated into this:

```
<p><font style="color:#FF0000">Cami&oacute;n espa&ntilde;ol</font></p>

```

any ideas?