From fb41c698ae26774e6bf71a0ed49b46c57c4023a9 Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Tue, 15 Jul 2014 18:23:15 +0400 Subject: Improve rendering of lambdas, escape html symbols. --- src/Utilities/Html.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/Utilities') diff --git a/src/Utilities/Html.kt b/src/Utilities/Html.kt index a4fd5fae..9630c8cb 100644 --- a/src/Utilities/Html.kt +++ b/src/Utilities/Html.kt @@ -1,4 +1,9 @@ package org.jetbrains.dokka -fun String.htmlEscape() = replace("&", "&").replace("<", "<").replace(">", ">") + +/** + * Replaces symbols reserved in HTML with their respective entities. + * Replaces & with &, < with < and > with > + */ +public fun String.htmlEscape(): String = replace("&", "&").replace("<", "<").replace(">", ">") -- cgit