package views.html.helper;


public class H {

	public static play.api.templates.Html nl2br(String s) {
		return new play.api.templates.Html(s != null ? s.replaceAll("\n", "<br/>") : "");
	}
	
}

package views.html.helper;

import play.api.templates.Html;


public class H {

	public static Html nl2br(String s) {
		if (s == null)
			return new Html("");
		s = s.replaceAll("\n\r", "<br/>");
		s = s.replaceAll("\r", "<br/>");
		s = s.replaceAll("\n", "<br/>");
		return new Html(s);
	}
	
}

enhance nl2br