> For the complete documentation index, see [llms.txt](https://ssd.mrw0l05zyn.cl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ssd.mrw0l05zyn.cl/recomendaciones/codificacion-de-salida.md).

# Codificación de salida

## Recomendaciones

* Utilizar [HTML entities](https://developer.mozilla.org/en-US/docs/Glossary/Entity).

```python
# HTML entities en Python
import html

html.escape('<div>Hack the planet!</div>')
'&lt;div&gt;Hack the planet!&lt;/div&gt;'

html.unescape('&lt;div&gt;Hack the planet!&lt;/div&gt;')
'<div>Hack the planet!</div>'
```
