File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/explainer Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -314,16 +314,22 @@ private fun convertToDescription(dataframeLike: Any): String =
314
314
else -> throw IllegalArgumentException (" Unsupported type: ${dataframeLike::class } " )
315
315
}.escapeHtmlForIFrame()
316
316
317
- internal fun String.escapeHtmlForIFrame (): String {
318
- return buildString {
317
+ internal fun String.escapeHtmlForIFrame (): String =
318
+ buildString {
319
319
for (c in this @escapeHtmlForIFrame) {
320
320
when (c) {
321
321
' <' -> append(" <" )
322
+
322
323
' >' -> append(" >" )
324
+
323
325
' &' -> append(" &" )
326
+
324
327
' "' -> append(" "" )
328
+
325
329
' \' ' -> append(" '" )
330
+
326
331
' \\ ' -> append(" \" )
332
+
327
333
else -> {
328
334
if (c.code > 127 ) {
329
335
append(" &#${c.code} ;" )
@@ -334,4 +340,3 @@ internal fun String.escapeHtmlForIFrame(): String {
334
340
}
335
341
}
336
342
}
337
- }
You can’t perform that action at this time.
0 commit comments