Merge pull request #254 from alphagov/placeholder-preview-html-fix

Fix bug with ‘ghost’ links in template textbox
This commit is contained in:
Chris Hill-Scott
2016-03-10 09:32:03 +00:00

View File

@@ -33,7 +33,7 @@
};
this.update = () => this.$backgroundMaskForeground.html(
this.$textbox.val().replace(
$('<div/>').text(this.$textbox.val()).html().replace(
tagPattern, match => `<span class='tag'>${match}</span>`
)
);