Is your feature request related to a problem?
No response
Describe the solution you'd like
The StripHtml() function in bready_bot.cc converts Odoo HTML messages to plain text. Extract it to a testable unit and write tests covering:
- Plain text passthrough
-
,
should cause a newline
- , should be removed
- text should create "text(url)"
should be the url on a newline
- HTML entities (&, <, etc.,)
- Nested tags
- Malformed HTML
Describe alternatives you've considered
No response
Additional context
No response
Is your feature request related to a problem?
No response
Describe the solution you'd like
The StripHtml() function in bready_bot.cc converts Odoo HTML messages to plain text. Extract it to a testable unit and write tests covering:
,
should cause a newline
Describe alternatives you've considered
No response
Additional context
No response