[Catalyst] Horizontal scrollbar on debug screen

A. Pagaltzis pagaltzis at gmx.de
Tue Nov 29 23:07:01 CET 2005


* Will Hawes <info at whawes.co.uk> [2005-11-29 17:05]:
> So a bit of work needs to be done on the error message:
> 
> $error =~ s/\n/<br\/>/g;
> $error =~ s/\B\s\B/&nbsp;/g;

Named entities (other than the predefined five) should be avoided
in XHTML. XML parsers are not obligated to read external DTDs,
and if you omit the DTD declaration from a document that uses
named entities, it’s not even well-formed.

Use &#160; instead.

Oh, and you can avoid the backslashitis there:

    $error =~ s!\n!<br/>!g;

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Catalyst mailing list