Skip to content

Commit

Permalink
Replace all instances
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtOfCode- committed Jun 8, 2021
1 parent 554fff3 commit 3d50b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ $(() => {
return {
results: data.map(t => ({
id: useIds ? t.id : t.name,
text: t.name.replace('<', '&#x3C;').replace('>', '&#x3E;'),
text: t.name.replace(/</g, '&#x3C;').replace(/>/g, '&#x3E;'),
desc: t.excerpt
}))
};
Expand Down

0 comments on commit 3d50b55

Please sign in to comment.