Unplanned
Last Updated: 21 Jan 2020 13:08 by ADMIN
Imported User
Created on: 19 Jan 2017 01:13
Category: Editor
Type: Feature Request
7
Allow customization of generated HTML
The Editor is currently very reliant on inline styles. Inline styles can be used for XSS attacks, and per the OWASP guidelines they should be sanitized: https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet#RULE_.234_-_CSS_Escape_And_Strictly_Validate_Before_Inserting_Untrusted_Data_into_HTML_Style_Property_Values

This is not easy to do "after the fact", as it needs to be two way.

Suggest that the editor can be customized similar to TinyMCE (https://www.tinymce.com/docs/configure/content-formatting/#exampleofusageoftheformatsoption) to allow classes rather than inline styles.
0 comments