|
|
|
@ -1,4 +1,5 @@ |
|
|
|
import Component from './Component'; |
|
|
|
import { escape } from 'utils/mixins'; |
|
|
|
|
|
|
|
export default Component.extend( |
|
|
|
{ |
|
|
|
@ -12,12 +13,8 @@ export default Component.extend( |
|
|
|
}, |
|
|
|
|
|
|
|
toHTML() { |
|
|
|
return this.get('content') |
|
|
|
.replace(/&/g, '&') |
|
|
|
.replace(/</g, '<') |
|
|
|
.replace(/>/g, '>') |
|
|
|
.replace(/"/g, '"') |
|
|
|
.replace(/'/g, '''); |
|
|
|
const cnt = this.get('content'); |
|
|
|
return escape(cnt); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
|