parameters: (
      view, content, md=True, css=None, debug=False, css_type=POPUP,
      wrapper_class=None, template_vars=None, template_env_options=None, nl2br=True
  )
return_statement: return html
docstring: Create html from content.
docstring_summary: Create html from content.
docstring_tokens: Create html from content .
function: def _create_html(
      view, content, md=True, css=None, debug=False, css_type=POPUP,
      wrapper_class=None, template_vars=None, template_env_options=None, nl2br=True
  ):
      """Create html from content."""
  
      debug = _get_setting('mdpopups.debug', NODEBUG)
  
      if css is None or not isinstance(css, str):
          css = ''
  
      style = _get_theme(view, css, css_type, template_vars)
  
      if debug:
          _debug('=====CSS=====', INFO)
          _debug(style, INFO)
  
      if md:
          content = md2html(
              view, content, template_vars=template_vars,
              template_env_options=template_env_options, nl2br=nl2br
          )
      else:
          content = _markup_template(content, template_vars, template_env_options)
  
      if debug:
          _debug('=====HTML OUTPUT=====', INFO)
          if bs4:
              soup = bs4.BeautifulSoup(content, "html.parser")
              _debug('\n' + soup.prettify(), INFO)
          else:
              _debug('\n' + content, INFO)
  
      if wrapper_class:
          wrapper = ('<div class="mdpopups"><div class="%s">' % wrapper_class) + '%s</div></div>'
      else:
          wrapper = '<div class="mdpopups">%s</div>'
  
      html = "<style>%s</style>" % (style)
      html += _remove_entities(wrapper % content)
      return html
function_tokens: def _create_html ( view , content , md = True , css = None , debug = False , css_type = POPUP , wrapper_class = None , template_vars = None , template_env_options = None , nl2br = True ) : debug = _get_setting ( 'mdpopups.debug' , NODEBUG ) if css is None or not isinstance ( css , str ) : css = '' style = _get_theme ( view , css , css_type , template_vars ) if debug : _debug ( '=====CSS=====' , INFO ) _debug ( style , INFO ) if md : content = md2html ( view , content , template_vars = template_vars , template_env_options = template_env_options , nl2br = nl2br ) else : content = _markup_template ( content , template_vars , template_env_options ) if debug : _debug ( '=====HTML OUTPUT=====' , INFO ) if bs4 : soup = bs4 . BeautifulSoup ( content , "html.parser" ) _debug ( '\n' + soup . prettify ( ) , INFO ) else : _debug ( '\n' + content , INFO ) if wrapper_class : wrapper = ( '<div class="mdpopups"><div class="%s">' % wrapper_class ) + '%s</div></div>' else : wrapper = '<div class="mdpopups">%s</div>' html = "<style>%s</style>" % ( style ) html += _remove_entities ( wrapper % content ) return html