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,
|
mutation: adminCreateContributionMessage,
|
||||||
variables: {
|
variables: {
|
||||||
contributionId: this.contributionId,
|
contributionId: this.contributionId,
|
||||||
message: this.form.text,
|
message: this.form.text.replace(/(<([^>]+)>)/gi, ''),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
|
|||||||
@ -47,7 +47,7 @@ export default {
|
|||||||
mutation: createContributionMessage,
|
mutation: createContributionMessage,
|
||||||
variables: {
|
variables: {
|
||||||
contributionId: this.contributionId,
|
contributionId: this.contributionId,
|
||||||
message: this.form.text,
|
message: this.form.text.replace(/(<([^>]+)>)/gi, ''),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
|
|||||||
@ -108,6 +108,7 @@ export default {
|
|||||||
submit() {
|
submit() {
|
||||||
this.form.amount = this.numberFormat(this.form.amount)
|
this.form.amount = this.numberFormat(this.form.amount)
|
||||||
// spreading is needed for testing
|
// 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.$emit(this.form.id ? 'update-contribution' : 'set-contribution', { ...this.form })
|
||||||
this.reset()
|
this.reset()
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user