﻿//
// Zifmia-HTMLFormatting.js
//
// This file is required to convert raw channel text to pretty html.
//
//

function _StringFormatHtmlInline() {
    var txt = this;

    txt = txt.replace(new RegExp('\\n', 'g'), '<br/>');         // replaces newlines with <br/> tag.

    return txt;
}

if (!String.prototype.toHtml) {
    String.prototype.toHtml = _StringFormatHtmlInline;
}

