0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Added support for blockquote in comments

refs https://github.com/TryGhost/Team/issues/1664
This commit is contained in:
Simon Backx 2022-07-08 11:01:57 +02:00 committed by Simon Backx
parent 7a4ae08b44
commit a6842e8a20

View file

@ -51,7 +51,7 @@ const Comment = ghostBookshelf.Model.extend({
const sanitizeHtml = require('sanitize-html');
this.set('html', sanitizeHtml(this.get('html'), {
allowedTags: ['p', 'br', 'a'],
allowedTags: ['p', 'br', 'a', 'blockquote'],
allowedAttributes: {
a: ['href', 'target', 'rel']
},