For Programmers: Free Programming Magazines  


Home > Archive > Java Beans > April 2005 > Java equivalent of PHP nl2br









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Java equivalent of PHP nl2br
rick.huby@e-connected.com

2005-03-18, 3:58 pm

Does Java have an equivalent of the rather handy PHP function nl2br
which replaces new lines with <br /> for nice use in websites?

I am sure it is nice and easy to just replace all of the \n or \r\n 's
with the <BR /> but with it being such a useful PHP thing I thought
that their might be a java version.

Thanks,

XunLing

2005-04-01, 8:57 am

baaaa

...if nessasery write it, its only a few lines
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com