From 915e7902954d736d63cc165377c21e52edc3fff0 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sat, 4 Mar 2023 10:15:04 +0100 Subject: [PATCH] Escaped quote on field values. --- src/fields.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fields.rs b/src/fields.rs index 45a0422..20a138d 100644 --- a/src/fields.rs +++ b/src/fields.rs @@ -120,7 +120,7 @@ impl FieldText { match f.field.tmpl.add_raw_template("field", r#"{% if label %}
{% endif %} - 0 %}maxlength="{{ maxlen }}"{% endif %} {% if invisible %}style="display: none;"{% endif %}/> + 0 %}maxlength="{{ maxlen }}"{% endif %} {% if invisible %}style="display: none;"{% endif %}/> {% if help %}
{{ help }}
{% endif %} {% if label %}
{% endif %}"#) { Err(e) => { println!("{:?}", e) }, @@ -225,7 +225,7 @@ impl FieldTextArea { match f.field.tmpl.add_raw_template("field", r#"{% if label %}
{% endif %} + name="{{ name }}" id="{{ name }}" rows="{{ rows }}">{{ value | replace(from='"', to=""") }} {% if help %}
{{ help }}
{% endif %} {% if label %}
{% endif %}"#) { Err(e) => { println!("{:?}", e) }, -- 2.49.0