Refactored to handle text input from Mac, Windows, Unix:
comment.gsub(/(\r\n|\n|\r)/, "<br />") Best, Patrick On Oct 2, 2006, at 3:43 pm, Patrick Crowley wrote:
comment.gsub("\n", '<br/>')
_______________________________________________ Sdruby mailing list [email protected] http://lists.sdruby.com/mailman/listinfo/sdruby
