mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 18:08:24 -04:00
Merge pull request #254 from alphagov/placeholder-preview-html-fix
Fix bug with ‘ghost’ links in template textbox
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.update = () => this.$backgroundMaskForeground.html(
|
this.update = () => this.$backgroundMaskForeground.html(
|
||||||
this.$textbox.val().replace(
|
$('<div/>').text(this.$textbox.val()).html().replace(
|
||||||
tagPattern, match => `<span class='tag'>${match}</span>`
|
tagPattern, match => `<span class='tag'>${match}</span>`
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user