Escape html chanacters, if any, in CLIN number

This commit is contained in:
graham-dds 2020-01-07 15:34:31 -05:00
parent eaa6b33b8e
commit c02bb8518e

View File

@ -1,4 +1,5 @@
import { emitFieldChange } from '../lib/emitters' import { emitFieldChange } from '../lib/emitters'
import escape from '../lib/escape'
import optionsinput from './options_input' import optionsinput from './options_input'
import textinput from './text_input' import textinput from './text_input'
import clindollaramount from './clin_dollar_amount' import clindollaramount from './clin_dollar_amount'
@ -99,7 +100,7 @@ export default {
computed: { computed: {
clinTitle: function() { clinTitle: function() {
if (!!this.clinNumber) { if (!!this.clinNumber) {
return `CLIN ${this.clinNumber}` return escape(`CLIN ${this.clinNumber}`)
} else { } else {
return `CLIN` return `CLIN`
} }