1 class Pettanr.PettanrSimpleFormat
\r
3 class Pettanr.PettanrSimpleFormat.RendererModule
\r
6 $("<div/>").text(t).html()
\r
8 @render = (content) ->
\r
9 text = PettanrSimpleFormat.escapeHTML(content)
\r
11 text = text.replace(/\r\n?/g, "\n")
\r
12 text = text.replace(/\n\n+/g, "</p><p>")
\r
13 text = text.replace(/\n/g, '\n<br />')
\r
14 text = text.replace(/\<\/p\>\<p\>/g, "</p>\n\n<p>")
\r
15 text = start_tag + text + "</p>"
\r