@blueprint.app_template_filter()<EOL>@evalcontextfilter<EOL>def nl2br(eval_ctx, value):
result = u'<STR_LIT>'.join(u'<STR_LIT>' % p.replace('<STR_LIT:\n>', '<STR_LIT>')<EOL>for p in _paragraph_re.split(escape(value)))<EOL>if eval_ctx.autoescape:<EOL><INDENT>result = Markup(result)<EOL><DEDENT>return result<EOL>
Template filter to convert newlines to <br>-tags.