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
7월 25
|
1257 | ||
|
|
0
12월 24
|
1607 | ||
|
|
2
10월 24
|
1850 | ||
|
|
2
7월 24
|
2149 | ||
|
|
1
7월 24
|
1711 |