aboutsummaryrefslogtreecommitdiffstats
path: root/src/service/sanitize.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/service/sanitize.js')
-rw-r--r--src/service/sanitize.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/service/sanitize.js b/src/service/sanitize.js
index 0d5c74af..1e201691 100644
--- a/src/service/sanitize.js
+++ b/src/service/sanitize.js
@@ -37,8 +37,8 @@
<doc:example>
<doc:source>
<script>
- function Ctrl() {
- this.snippet =
+ function Ctrl($scope) {
+ $scope.snippet =
'<p style="color:blue">an html\n' +
'<em onmouseover="this.textContent=\'PWN3D!\'">click here</em>\n' +
'snippet</p>';