[dev] How to write a newline with Horde::raiseMessage()?

Chuck Hagenbuch chuck at horde.org
Tue Nov 11 06:59:33 PST 2003


Quoting Giannici Federico <giannici at neomedia.it>:

> I have to show a message made up of two sentences. I think it would be
> much more readable if I could insert a newline between them.

Then make it two different messages.

> I cannot see any controindication using a nl2br() after
> htmlspecialchars()...

Because formatted text is not the purpose of the call.

> Anyway, I can survive with this, but what about the problem I signaled a
> couple of day ago ("<i>" tags in text sent to Horde::raiseMessage())?

It's a bug (oversight), but it's been taken out in most current CVS versions
that I know of.

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
"I am not that interested in green food." - Average Joe


More information about the dev mailing list