Opened 5 years ago

Closed 5 years ago

#1485363 closed Bugs (fixed)

Tag <nobr> is not represented correctly

Reported by: caliaro Owned by:
Priority: 5 Milestone: 0.2-beta
Component: PHP backend Version: 0.2-alpha
Severity: normal Keywords: nobr washtml
Cc:

Description

Problem
In a HTML mail containing "<nobr>bliblo</nobr> <nobr>bla</nobr>" the mail is represented empty, because <nobr> is not an official tag. However, it is still contained in some mails.

To be considered:
Adding nobr to the accepted tags is not enough, because in the upper example the space between bliblo and bla would be empty.

Solution
The following line in program/lib/washtml.php, function wash(), replacing "@$node->loadHTML($html);" would correct this:

@$node->loadHTML(str_ireplace('<nobr>', '', str_ireplace('</nobr>','',$html);

Hope it helps (for me, it did)!

Regards,
Aurelio

Change History (1)

comment:1 Changed 5 years ago by alec

  • Component changed from Core functionality to PHP backend
  • Milestone changed from later to 0.2-beta
  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [7f62581c].

Note: See TracTickets for help on using tickets.