We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d4313b commit ea2987cCopy full SHA for ea2987c
src/unescapeHtml.ts
@@ -0,0 +1,3 @@
1
+export function unescapeHtml(s: string): string {
2
+ return s.replace(/&|<|>|'|"/g, tag => ({ '&': '&', '<': '<', '>': '>', ''': '\'', '"': '"' }[tag] || tag))
3
+}
0 commit comments