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.
This commit is contained in:
graham-dds
2020-01-14 15:16:21 -05:00
parent d55a81ebdd
commit ffd3dd2d9d
4 changed files with 13 additions and 14 deletions

View File

@@ -15,7 +15,7 @@
<div>
<div v-show="valid" class="uploaded-file">
{{ Icon("ok") }}
<a class="uploaded-file__name" v-html="baseName" v-bind:href="downloadLink"></a>
<a class="uploaded-file__name" v-text="baseName" v-bind:href="downloadLink"></a>
<a href="#" class="uploaded-file__remove" v-on:click="removeAttachment">Remove</a>
</div>
<div v-show="valid === false" v-bind:class='{ "usa-input": true, "usa-input--error": showErrors }'>