aboutsummaryrefslogtreecommitdiff
path: root/src/Utilities
diff options
context:
space:
mode:
Diffstat (limited to 'src/Utilities')
-rw-r--r--src/Utilities/Html.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Utilities/Html.kt b/src/Utilities/Html.kt
new file mode 100644
index 00000000..a4fd5fae
--- /dev/null
+++ b/src/Utilities/Html.kt
@@ -0,0 +1,4 @@
+package org.jetbrains.dokka
+
+fun String.htmlEscape() = replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;")
+