this.threadCreated.emit(this.commentTree)
}
- this.commentTree.children.push({
+ this.commentTree.children.unshift({
comment: createdComment,
children: []
})
allowedTags: [ 'a', 'p', 'span', 'br' ],
allowedSchemes: [ 'http', 'https' ],
allowedAttributes: {
- 'a': [ 'href', 'class' ]
+ 'a': [ 'href', 'class', 'target' ]
},
transformTags: {
a: (tagName, attribs) => {
return {
tagName,
attribs: Object.assign(attribs, {
- target: '_blank'
+ target: '_blank',
+ rel: 'noopener noreferrer'
})
}
}