diff --git a/src/pages/Details.vue b/src/pages/Details.vue
index 17d32365c..1d068b92e 100644
--- a/src/pages/Details.vue
+++ b/src/pages/Details.vue
@@ -9,7 +9,8 @@
{{ monitor.id }}
- {{ monitor.description }}
+
+
@@ -285,6 +286,8 @@ import Tag from "../components/Tag.vue";
import CertificateInfo from "../components/CertificateInfo.vue";
import { getMonitorRelativeURL } from "../util.ts";
import { URL } from "whatwg-url";
+import DOMPurify from "dompurify";
+import { marked } from "marked";
import { getResBaseURL } from "../util-frontend";
import { highlight, languages } from "prismjs/components/prism-core";
import "prismjs/components/prism-clike";
@@ -399,6 +402,14 @@ export default {
screenshotURL() {
return getResBaseURL() + this.monitor.screenshot + "?time=" + this.cacheTime;
+ },
+
+ descriptionHTML() {
+ if (this.monitor.description != null) {
+ return DOMPurify.sanitize(marked(this.monitor.description));
+ } else {
+ return "";
+ }
}
},