From: Andrea Zagli Date: Sat, 4 Mar 2023 09:15:04 +0000 (+0100) Subject: Escaped quote on field values. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=915e7902954d736d63cc165377c21e52edc3fff0;p=rust%2Fzakform Escaped quote on field values. --- 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) },