aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-04-25 18:18:19 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-04-25 18:18:19 +0300
commitb697931315234ca74767ce26e2e9b03b46e4ad21 (patch)
tree5fdad533d769d0ea409a3d4104d6831d1698878b /core/src/main/kotlin
parent5cd5ec6904fadb3e420d548dfd987dd32cc24959 (diff)
downloaddokka-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.kt2
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)
}
}