Preserve formatting of non-html extension widget content

This commit is contained in:
Svilen Markov
2024-12-22 13:44:41 +00:00
parent 495eaa0a37
commit f89fc2ee1d
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ func convertExtensionContent(options extensionRequestOptions, content []byte, co
fallthrough
default:
return template.HTML(html.EscapeString(string(content)))
return template.HTML("<pre>" + html.EscapeString(string(content)) + "</pre>")
}
}