Skip to content

Commit cedbe79

Browse files
committed
replace triple mustache with html-safe helper
1 parent 1334323 commit cedbe79

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

app/helpers/html-safe.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { helper } from '@ember/component/helper';
2+
import { htmlSafe as markAsSafe } from '@ember/template';
3+
4+
export function htmlSafe([content] /*, hash*/) {
5+
return markAsSafe(content);
6+
}
7+
8+
export default helper(htmlSafe);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{{rendered}}}
1+
{{html-safe rendered}}

0 commit comments

Comments
 (0)