Sha256: 75847c366597e7a1e47eae886c1673351ab2befa85eb4e4c2f2ae1609b1fa461
Contents?: true
Size: 492 Bytes
Versions: 11
Compression:
Stored size: 492 Bytes
Contents
I"à(function() { App.Helpers.Text = (function() { function Text(opts) { if (opts == null) { opts = {}; } } Text.prototype.simpleFormat = function(str) { str = str.replace(/\r\n?/, "\n"); str = $.trim(str); if (str.length > 0) { str = str.replace(/\n\n+/g, '</p><p>'); str = str.replace(/\n/g, '<br>'); str = '<p>' + str + '</p>'; } return str; }; return Text; })(); }).call(this); :ET
Version data entries
11 entries across 4 versions & 1 rubygems