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
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
2
يوليو 25
|
1600 | |||
|
0
ديسمبر 24
|
1820 | |||
|
2
أكتوبر 24
|
2050 | |||
|
2
يوليو 24
|
2435 | |||
|
1
يوليو 24
|
1922 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.