def markup_description(description):
 if apply_markdown:
  description = apply_markdown(description)
 else:
  description = escape(description).replace('\n', '<br />')
 return mark_safe(description)

def markup_description ( description ) : if apply_markdown : description = apply_markdown ( description ) else : description = escape ( description ) . replace ( '\n' , '<br />' ) return mark_safe ( description )
apply html markup to the given description .