def render_tag(tag, attrs=None, content=None, close=True):
 builder = u'<{tag}{attrs}>{content}'
 if (content or close):
  builder += u'</{tag}>'
 return format_html(builder, tag=tag, attrs=(mark_safe(flatatt(attrs)) if attrs else u''), content=text_value(content))

def render_tag ( tag , attrs = None , content = None , close = True ) : builder = u'<{tag}{attrs}>{content}' if ( content or close ) : builder += u'</{tag}>' return format_html ( builder , tag = tag , attrs = ( mark_safe ( flatatt ( attrs ) ) if attrs else u'' ) , content = text_value ( content ) )
render a html tag .