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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Dec 24
|
767 | ||
|
2
Oct 24
|
944 | ||
|
2
Jul 24
|
1277 | ||
|
1
Jul 24
|
914 | ||
|
1
Jul 24
|
1100 |