HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
GDN_Comment - When BBCode or HTML Format?
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:
0
Comments
That is the formatting method used in
Gdn_Format
to render theBody
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.
Usually it is the config value of
Garden.InputFormatter
. This may be one ofHtml
Markdown
BBCode
Text
TextEx
Wysiwyg
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS