shortcodeが安全なJavascriptと判断するように修正

This commit is contained in:
Kazuhiro MUSASHI 2020-06-13 13:14:06 +07:00 committed by Gitea
parent 99211ea640
commit 48dee87fea
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
<canvas id="{{ if .Get "canvas" }}{{ .Get "canvas" }}{{ else }}mychart{{ end }}" width="{{ if .Get "width" }}{{ .Get "width" }}{{ else }}400{{ end }}" height="{{ if .Get "height" }}{{ .Get "height" }}{{ else }}400{{ end }}"></canvas> <canvas id="{{ if .Get "canvas" }}{{ .Get "canvas" }}{{ else }}mychart{{ end }}" width="{{ if .Get "width" }}{{ .Get "width" }}{{ else }}400{{ end }}" height="{{ if .Get "height" }}{{ .Get "height" }}{{ else }}400{{ end }}"></canvas>
<script> <script>
{{ .Inner }} {{ safeJS .Inner }}
</script> </script>