mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
strip html from text
This commit is contained in:
parent
ce3d9b1708
commit
68e24a5973
@ -47,7 +47,7 @@ export default {
|
||||
mutation: adminCreateContributionMessage,
|
||||
variables: {
|
||||
contributionId: this.contributionId,
|
||||
message: this.form.text,
|
||||
message: this.form.text.replace(/(<([^>]+)>)/gi, ''),
|
||||
},
|
||||
})
|
||||
.then((result) => {
|
||||
|
||||
@ -47,7 +47,7 @@ export default {
|
||||
mutation: createContributionMessage,
|
||||
variables: {
|
||||
contributionId: this.contributionId,
|
||||
message: this.form.text,
|
||||
message: this.form.text.replace(/(<([^>]+)>)/gi, ''),
|
||||
},
|
||||
})
|
||||
.then((result) => {
|
||||
|
||||
@ -108,6 +108,7 @@ export default {
|
||||
submit() {
|
||||
this.form.amount = this.numberFormat(this.form.amount)
|
||||
// spreading is needed for testing
|
||||
this.form.memo = this.form.memo.replace(/(<([^>]+)>)/gi, '')
|
||||
this.$emit(this.form.id ? 'update-contribution' : 'set-contribution', { ...this.form })
|
||||
this.reset()
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user