def render(self, text, apply_spammer_limits=False):
     if get_sph_setting('board_auto_wiki_link_enabled', True):
         from sphene.sphwiki import wikilink_utils
         return wikilink_utils.render_wikilinks(bbcode.bb2xhtml(text))
     else:
         return bbcode.bb2xhtml(text, apply_spammer_limits=apply_spammer_limits)
Esempio n. 2
0
 def render(self, text):
     if get_sph_setting('board_auto_wiki_link_enabled', True):
         return wikilink_utils.render_wikilinks(bbcode.bb2xhtml(text))
     else:
         return bbcode.bb2xhtml(text)
Esempio n. 3
0
 def render(self, text):
      if get_sph_setting( 'board_auto_wiki_link_enabled', True ):
          return wikilink_utils.render_wikilinks(bbcode.bb2xhtml(text))
      else:
          return bbcode.bb2xhtml(text)