Added formatLineBreaks helper function

Replaces carriage returns by HTML line break tags. Typical usage: displaying content from a textarea input.