fix: x-data quotes conflict — tojson double-quotes break HTML attribute
tojson outputs JSON with double quotes, which clash with x-data="..." HTML attribute delimiter. Changed x-data delimiters to single quotes so JSON double quotes are contained properly within the attribute.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="page-editor-wrapper" x-data="editor({{ page.id }}, {{ page.title | tojson }}, {{ page.content_format | tojson }}, {{ page.content | tojson }}, {{ page_favorited | tojson }})" x-init="init()">
|
||||
<div class="page-editor-wrapper" x-data='editor({{ page.id }}, {{ page.title | tojson }}, {{ page.content_format | tojson }}, {{ page.content | tojson }}, {{ page_favorited | tojson }})' x-init="init()">
|
||||
|
||||
<!-- ═══════════ Top Action Bar ═══════════ -->
|
||||
<div class="page-topbar">
|
||||
|
||||
Reference in New Issue
Block a user