Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Convert HTML to text

olivierMPW
8 - Asteroid

hello 

I have a column containing HTML tags and I want to convert it as plain text

 

for example :

 

 

<p>Vous serez amen&eacute;(e) &agrave;&nbsp;<strong>animer les formations th&eacute;oriques et pratiques</strong>&nbsp;pour les conducteurs transports de personnes de demain&nbsp;!<br/><br/>Pour cela votre expertise en tant que conducteur(trice) sera indispensable.<br/>A moins que vous &ecirc;tes d&eacute;j&agrave; un moniteur/formateur(trice) !</p>

 

should be treated as 

 

Vous serez amené(e) à animer les formations théoriques et pratiques pour les conducteurs transports de personnes de demain Pour cela votre expertise en tant que conducteur(trice) sera indispensable.A moins que vous êtes déjà; un moniteur/formateur(trice) !

 

how can I do that

 

2 REPLIES 2
binuacs
20 - Arcturus

@olivierMPW One way of doing this

binuacs_0-1671636089011.png

 

Felipe_Ribeir0
16 - Nebula

Hi @olivierMPW 

 

One way of doing this is by using the html2text python library (https://pypi.org/project/html2text/)

 

Felipe_Ribeir0_0-1671637124628.png

 

Run Alteryx as adm to install the library and run the attached workflow.

 

Felipe_Ribeir0_1-1671637163414.png

 

 

Labels