[next] Sanitize <py-script> content + deprecate html content (#1663)

This commit is contained in:
Andrea Giammarchi
2023-08-31 10:43:28 +02:00
committed by GitHub
parent 0f2deeb71a
commit 74cd7c840a
5 changed files with 35 additions and 6 deletions

View File

@@ -0,0 +1,13 @@
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="../core.css" />
<script type="module" src="../core.js"></script>
</head>
<body>
<body>
<py-script>import js; js.console.log(1<2, 1>2)</py-script>
<py-script>js.console.log("<div></div>")</py-script>
</body>
</body>
</html>