Hi, I solved it and wanted to share the solution in case anyone find this thread in the future.
There is a **Send Selection To** option in the **Edit -> Format** menu.
There I created a new **Custom Command** with this content: `recode ascii..html`
You need to install the `recode` command for it to work. It will translate the selected text to html, escaping the entities.