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
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
2
Jul 25
|
3113 | |||
|
0
Dec 24
|
3130 | |||
|
2
Oct 24
|
3131 | |||
|
2
Jul 24
|
3789 | |||
|
1
Jul 24
|
2835 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.