mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 12:21:13 +00:00
Fix isoData can contain user generated content (#1114)
* Fix isoData can contain user generated content * Fix formatting
This commit is contained in:
parent
850de94c00
commit
22a4fae0c2
1 changed files with 4 additions and 1 deletions
|
@ -25,6 +25,7 @@ import {
|
|||
favIconUrl,
|
||||
initializeSite,
|
||||
isAuthPath,
|
||||
md,
|
||||
} from "../shared/utils";
|
||||
|
||||
const server = express();
|
||||
|
@ -347,7 +348,9 @@ async function createSsrHtml(root: string, isoData: IsoDataOptionalSite) {
|
|||
<!DOCTYPE html>
|
||||
<html ${helmet.htmlAttributes.toString()} lang="en">
|
||||
<head>
|
||||
<script>window.isoData = ${JSON.stringify(isoData)}</script>
|
||||
<script>window.isoData = ${md.utils.escapeHtml(
|
||||
JSON.stringify(isoData)
|
||||
)}</script>
|
||||
<script>window.lemmyConfig = ${serialize(config)}</script>
|
||||
|
||||
<!-- A remote debugging utility for mobile -->
|
||||
|
|
Loading…
Reference in a new issue