HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

GDN_Comment - When BBCode or HTML Format?

phreakphreak Vanilla*APP (White Label) & Vanilla*Skins Shop MVP

Hi all,

When a new comment ist posted, the "Format" column in GDN_Comment receives the value BBCode or HTML?

Does anyone know what's the reason for adding this value?
Does this information speed up the rendering of every comment for the Advanced Editor because it doesn't need to iterate through the options HTML, Markdown, etc. ?

Thank you,
phreak

  • VanillaAPP | iOS & Android App for Vanilla - White label app for Vanilla Forums OS
  • VanillaSkins | Plugins, Themes, Graphics and Custom Development for Vanilla
Tagged:

Comments

  • Options
    LincLinc Detroit Admin
    edited July 2016

    That is the formatting method used in Gdn_Format to render the Body of the comment. The end result is always HTML, but all formatters (including HTML) need to get magic content like emoji, links, and mentions converted.

    There's no automatic detection possible that wouldn't compromise performance.

  • Options
    BleistivtBleistivt Moderator
    edited July 2016

    When a new comment ist posted, the "Format" column in GDN_Comment receives the value BBCode or HTML?

    Usually it is the config value of Garden.InputFormatter. This may be one of

    • Html
    • Markdown
    • BBCode
    • Text
    • TextEx
    • Wysiwyg
Sign In or Register to comment.