Possible [BUG] v 2.2.0 Cant display HTML correctly
Collapse
X
-
It's a bug but it's be impossible to fix. The problem is in order to correctly parse line breaks, the message is run through nl2br() (new line to <br>). Since the HTML is on more than one line, a <br> (or in the case of later versions of PHP, <br />) is added. The browser interprets this and puts all the <br>'s at the top, outside the table, since they're not valid inside a table but outside of table cells.
OK, so why is it impossible to fix? Couldn't we just do a str_replace() to take out the <br>'s? Sure, but what if the author put one in? Then it would take that one out too.
The current solution is to run any code together on one line. Bad, but it's the best I can come up with.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment