#NEWLINE# def render_tag( tag , attrs = None , content = None , close = True ) : #NEWLINE# #INDENT# '\n    Render a HTML tag\n    ' #NEWLINE# builder = '<{tag}{attrs}>{content}' #NEWLINE# if ( content or close ) : #NEWLINE# #INDENT# builder += '</{tag}>' #NEWLINE# #UNINDENT# return format_html ( builder , tag = tag , attrs = ( mark_safe ( flatatt ( attrs ) ) if attrs else '' ) , content = text_value ( content ) )