Artificial intelligent assistant

How to convert html entities to readable text? I want html number entities like &#x119; and want to convert it to real character. I have emails mostly from linkedin that look like this: > chcia&#x142;abym zapyta&#x107;, czy rozwa&#x17c;a Pan takze udzia&#x142; w nowych projektach w Warszawie ? Obecnie poszukujemy specjalisty javascript/architekta z bardzo dobr&#x105; znajomo&#x15b;ci&#x105; Angular.js do projektu, kt&#xf3;ry dotyczy systemu, s&#x142;u&#x17c;&#x105;cego do monitorowania i zarz&#x105;dzania flot&#x105; pojazd&#xf3;w. Zesp&#xf3;&#x142;, do kt&#xf3;rego poszukujemy I'm using clawsmail, switching to html don't convert it to text, I've try to copy and use xclip -o -sel clip | html2text | less but it didn't convert the entities. Is there a way to have that text using command line tools? The only way I can think of is to use `data:text/html,<PASTE THE EMAIL>` and open it in a browser, but would prefer the command line.

With Free `recode` (formerly known as GNU `recode`):


recode html < file


If you don't have `recode` or `HTML::Entities` and only need to decode `&#x;` entities, you could do it by hand with:


perl -Mopen=locale -pe 's/&#x([\da-f]+);/chr hex $1/gie'

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy b401091e91cb834c90893f782ada3b25