diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-04-25 18:18:19 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-04-25 18:18:19 +0300 |
commit | b697931315234ca74767ce26e2e9b03b46e4ad21 (patch) | |
tree | 5fdad533d769d0ea409a3d4104d6831d1698878b /core/src/main/kotlin | |
parent | 5cd5ec6904fadb3e420d548dfd987dd32cc24959 (diff) | |
download | dokka-b697931315234ca74767ce26e2e9b03b46e4ad21.tar.gz dokka-b697931315234ca74767ce26e2e9b03b46e4ad21.tar.bz2 dokka-b697931315234ca74767ce26e2e9b03b46e4ad21.zip |
Fix <String> escaping in samples for KWS HTML format
Diffstat (limited to 'core/src/main/kotlin')
-rw-r--r-- | core/src/main/kotlin/Formats/KotlinWebsiteHtmlFormatService.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Formats/KotlinWebsiteHtmlFormatService.kt b/core/src/main/kotlin/Formats/KotlinWebsiteHtmlFormatService.kt index 0d8b10bb..378401f3 100644 --- a/core/src/main/kotlin/Formats/KotlinWebsiteHtmlFormatService.kt +++ b/core/src/main/kotlin/Formats/KotlinWebsiteHtmlFormatService.kt @@ -150,7 +150,7 @@ open class KotlinWebsiteHtmlOutputBuilder(to: StringBuilder, div(to, "sample") { appendBlockCode(language) { imports() - wrap("\n\nfun main(args: Array<String>) {", "}") { + wrap("\n\nfun main(args: Array<String>) {".htmlEscape(), "}") { wrap("\n//sampleStart\n", "\n//sampleEnd\n", body) } } |