Skip to content

[Feature] Unit tests for StripHtml helper #10

@AustinATTS

Description

@AustinATTS

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or improvement requesttestAdding or improving tests

Type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions