We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f636e4 commit 4612bb1Copy full SHA for 4612bb1
resources/js/components/dashboard/DashboardLog.vue
@@ -99,9 +99,7 @@
99
<a :href="'people/' + note.contact.id">
100
{{ note.name }}
101
</a>
102
- <p>
103
- {{ note.body }}
104
- </p>
+ <p v-html="compiledMarkdown(note.body)"></p>
105
</div>
106
107
</template>
@@ -449,7 +447,11 @@ export default {
449
447
.then(response => {
450
448
this.tasks.splice(this.tasks.indexOf(task), 1);
451
});
452
- }
+ },
+
+ compiledMarkdown (text) {
453
+ return text !== undefined && text !== null ? marked(text, { sanitize: true }) : '';
454
455
}
456
};
457
</script>
0 commit comments