aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/utilities/Html.kt
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/kotlin/utilities/Html.kt')
-rw-r--r--core/src/main/kotlin/utilities/Html.kt23
1 files changed, 0 insertions, 23 deletions
diff --git a/core/src/main/kotlin/utilities/Html.kt b/core/src/main/kotlin/utilities/Html.kt
deleted file mode 100644
index fc2330d2..00000000
--- a/core/src/main/kotlin/utilities/Html.kt
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
- */
-
-package org.jetbrains.dokka.utilities
-
-import org.jetbrains.dokka.InternalDokkaApi
-import java.net.URLEncoder
-
-
-/**
- * Replaces symbols reserved in HTML with their respective entities.
- * Replaces & with &amp;, < with &lt; and > with &gt;
- */
-@InternalDokkaApi
-public fun String.htmlEscape(): String = replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;").replace("\"", "&quot;")
-
-@InternalDokkaApi
-public fun String.urlEncoded(): String = URLEncoder.encode(this, "UTF-8")
-
-@InternalDokkaApi
-public fun String.formatToEndWithHtml(): String =
- if (endsWith(".html") || contains(Regex("\\.html#"))) this else "$this.html"