From 122d21df09c5aca3708571a19d8585a5e9e89175 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Thu, 18 Jun 2026 13:16:48 -0500 Subject: [PATCH] =?UTF-8?q?Fix:=20editar=20consulta=20no=20hac=C3=ADa=20na?= =?UTF-8?q?da=20=E2=80=94=20comillas=20dobles=20en=20onclick=20romp=C3=ADa?= =?UTF-8?q?n=20el=20HTML?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cambio tojson en atributos onclick por data-* con |e. dataset decodifica automáticamente " → " sin riesgo de romper el atributo. Co-Authored-By: Claude Sonnet 4.6 --- app/templates/queries.html | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/app/templates/queries.html b/app/templates/queries.html index c747bfa..ad56e8f 100644 --- a/app/templates/queries.html +++ b/app/templates/queries.html @@ -50,7 +50,12 @@
{% for q in queries %}
+ data-sql="{{ q.query_text | e }}" + data-name="{{ q.name | e }}" + data-type="{{ q.query_type }}" + data-id="{{ q.id }}" + data-desc="{{ (q.description or '') | e }}" + onclick="cargarConsultaEl(this)">
@@ -60,7 +65,7 @@