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:
@@ -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 }'>
|
||||
|
Reference in New Issue
Block a user