docs: def _plugin_tags_to_html(text, output_func):
      """
      Convert plugin object 'tags' into the form for public site.
  
      context is the template context to use, placeholder is the placeholder name
      """
      plugins_by_id = get_plugins_from_text(text)
  
      def _render_tag(m):
          try:
              plugin_id = int(m.groupdict()['pk'])
              obj = plugins_by_id[plugin_id]
          except KeyError:
              # Object must have been deleted.  It cannot be rendered to
              # end user so just remove it from the HTML altogether
              return u''
          else:
              obj._render_meta.text_enabled = True
              return output_func(obj, m)
      return OBJ_ADMIN_RE.sub(_render_tag, text)