Skip to content

Firefly III: a personal finances manager

Fix #7159

James Cole6912e0567749
diff --git a/resources/assets/js/components/transactions/CreateTransaction.vue b/resources/assets/js/components/transactions/CreateTransaction.vue
index 4f085f42e2..d16c16c1b6 100644
--- a/resources/assets/js/components/transactions/CreateTransaction.vue
+++ b/resources/assets/js/components/transactions/CreateTransaction.vue
@@ -529,7 +529,7 @@ export default {
// if count is 0, send user onwards.
if (this.createAnother) {
// do message:
- this.success_message = this.$t('firefly.transaction_stored_link', {ID: groupId, title: $(title).text()});
+ this.success_message = this.$t('firefly.transaction_stored_link', {ID: groupId, title: this.escapeHTML(title)});
this.error_message = '';
if (this.resetFormAfter) {
// also clear form.