Java method similar to nl2br in PHP
June 25th, 2009One Comment
Below Java method will work same as PHP function nl2br
public static String nl2br( String text){
return text.replaceAll("\n","<br />");
}
return text.replaceAll("\n","<br />");
}
June 25th, 2009One Comment
Below Java method will work same as PHP function nl2br
Thursday, June 25th, 2009 at 5:26 am
I want to say – thank you for this!