* Fix isoData can contain user generated content
* Fix formatting
favIconUrl,
initializeSite,
isAuthPath,
+ md,
} from "../shared/utils";
const server = express();
<!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 -->