Good day everyone,
How can I automatically remove the html tags on a text field with html widget on an exported xml file in odoo 10.
Thank you in advance.
Good day everyone,
How can I automatically remove the html tags on a text field with html widget on an exported xml file in odoo 10.
Thank you in advance.
Hi,
Try this
import re
html_text = "<p>This is <b>bold</b> and <i>italic</i> text.</p>"
clean_text = re.sub('<.*?>', '', html_text)
Hope it helps
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
2
jul 25
|
2976 | |||
|
0
dic 24
|
3085 | |||
|
2
oct 24
|
3094 | |||
|
2
jul 24
|
3713 | |||
|
1
jul 24
|
2814 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.