[Qgis-user] Automagically remove html from attribute?

Bernd Vogelgesang bernd.vogelgesang at gmx.de
Sat Oct 6 03:45:10 PDT 2018


Hi,

We work a lot with gpx files created with theĀ  Locus App on Android.

Unfortunately, the "desc" field is created with html tags (for whatever 
reason), so it is quite a tedious work to extract the plain text 
informations out of it.

Does anyone know a way how to get rid of the html and only preserve the 
plain text informations?

Example:

<!-- desc_gen:start -->
<font color="#ff000000"><table width="100%"><tr><td width="100%" 
align="center">
<!-- desc_user:start -->
This is the information I would like to keep
<!-- desc_user:end -->
</td></tr><tr><td><table width="100%"></table></td></tr></


Is the e.g. a way to search for < and > and then delete them an all text 
within programmatically?


Cheers,

Bernd



More information about the Qgis-user mailing list