function nl2br(sText){
        return (typeof sText === "string") ? sText.split("\n").join("<br>") : sText;
    }
Inserts HTML line breaks before all newlines in a string
@param {String} sText
@return {String}