From b697931315234ca74767ce26e2e9b03b46e4ad21 Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Tue, 25 Apr 2017 18:18:19 +0300 Subject: Fix escaping in samples for KWS HTML format --- core/src/main/kotlin/Formats/KotlinWebsiteHtmlFormatService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src/main/kotlin') 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) {", "}") { + wrap("\n\nfun main(args: Array) {".htmlEscape(), "}") { wrap("\n//sampleStart\n", "\n//sampleEnd\n", body) } } -- cgit