Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Converting carriage returns to HTML breaks

by thomas895 (Deacon)
on Apr 16, 2012 at 03:48 UTC ( [id://965232]=note: print w/replies, xml ) Need Help??


in reply to Converting carriage returns to HTML breaks

You can also cheat:

use CGI; my $html_break = CGI->br; $message =~ s/\Q\r\n\E/$html_break/g;

Not sure if that does what you want, but it's worth a shot.

~Thomas~

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://965232]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-03-28 18:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found