diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-15 18:23:15 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-15 18:23:15 +0400 |
commit | fb41c698ae26774e6bf71a0ed49b46c57c4023a9 (patch) | |
tree | a59f30756c79fad626770d9a32b97c49c14f9ef9 /src/Utilities | |
parent | eebfdd41acc897ba9177f1c8daa428a079c8e99f (diff) | |
download | dokka-fb41c698ae26774e6bf71a0ed49b46c57c4023a9.tar.gz dokka-fb41c698ae26774e6bf71a0ed49b46c57c4023a9.tar.bz2 dokka-fb41c698ae26774e6bf71a0ed49b46c57c4023a9.zip |
Improve rendering of lambdas, escape html symbols.
Diffstat (limited to 'src/Utilities')
-rw-r--r-- | src/Utilities/Html.kt | 7 |
1 files changed, 6 insertions, 1 deletions
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(">", ">") |