Are you ready to switch to HTML parsing permanently?

83.3% 65
1.3% 1
15.4% 12

78 Дата 14.04.2010 00:49

Форумы / Cotonti / Development / Опрос: A global switch to HTML parsing

Are you ready?

GHengeveld
#24217 20.04.2010 07:27
Considering all opinions and preferences, I'm convinced we should go for a multi-parser solution. My design would include the following:

- Multi parser, both BBcode and HTML
- BBcode gets smart paragraphs instead of nl2br
- HTML is cleaned using HTMLPurifier (upon submission)
- We use two of the extra rights fields (the hidden ones) to configure which usergroup can use which parser (i.e. both HTML and BBcode for moderators and up) for each site area/plugin. Alternatively we add 2 custom fields.
- We use only one field for the text (BBcode or HTML), but use another to store which parser is applicable. This keeps redundancy to a minimum.
- All editors (Markitup, TinyMCE, CKeditor) are configured as plugins. Which two will be included in the Cotonti package (if any) is yet to be defined.