From ffd3dd2d9df875a9a9ef976b2fee39ddd60a2502 Mon Sep 17 00:00:00 2001 From: graham-dds Date: Tue, 14 Jan 2020 15:16:21 -0500 Subject: [PATCH] use v-text instead of v-html v-html interprets the string passed to it as raw html, without escaping. We should use v-text wherever possible. --- js/components/clin_fields.js | 3 +-- templates/components/clin_fields.html | 6 +++--- templates/components/upload_input.html | 2 +- .../reports/application_and_env_spending.html | 16 ++++++++-------- 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/js/components/clin_fields.js b/js/components/clin_fields.js index 59d6c8c9..327bedf0 100644 --- a/js/components/clin_fields.js +++ b/js/components/clin_fields.js @@ -1,5 +1,4 @@ import { emitFieldChange } from '../lib/emitters' -import escape from '../lib/escape' import optionsinput from './options_input' import textinput from './text_input' import clindollaramount from './clin_dollar_amount' @@ -100,7 +99,7 @@ export default { computed: { clinTitle: function() { if (!!this.clinNumber) { - return escape(`CLIN ${this.clinNumber}`) + return `CLIN ${this.clinNumber}` } else { return `CLIN` } diff --git a/templates/components/clin_fields.html b/templates/components/clin_fields.html index 1117b89c..a0724db5 100644 --- a/templates/components/clin_fields.html +++ b/templates/components/clin_fields.html @@ -23,7 +23,7 @@ inline-template>
- +
-

+


@@ -140,7 +140,7 @@