Harmonize with web version, better style, fix for Firefox 45.9.0 ESR
[qomet.git] / routes / assessments.js
index a107d7e..b7dcfd9 100644 (file)
@@ -11,9 +11,10 @@ const sanitizeHtml = require('sanitize-html');
 const sanitizeOpts = {
        allowedTags: sanitizeHtml.defaults.allowedTags.concat([ 'img', 'u' ]),
        allowedAttributes: {
-               img: [ 'src' ],
+               img: [ 'src','style' ],
                code: [ 'class' ],
                table: [ 'class' ],
+               div: [ 'style' ],
        },
 };