How to replace new line character with br
$tempString = “Hello is testing for new line\n to br”;
$tempString =~ s/\n/<br\/>/;
output = “Hello is testing for new line
to br”;
Creative, Informative and Entertaining Stuff for everyone
How to replace new line character with br
$tempString = “Hello is testing for new line\n to br”;
$tempString =~ s/\n/<br\/>/;
output = “Hello is testing for new line
to br”;
You must be logged in to post a comment.
Thanks for the helpful info. I really enjoy reading posts on here.