Add stackoverflow plugin (#159)

This commit is contained in:
Simon Lecoq
2021-02-27 23:24:51 +01:00
committed by GitHub
parent a43f217297
commit cfca5d3892
11 changed files with 563 additions and 3 deletions

View File

@@ -91,8 +91,8 @@
return string
.replace(/&lt;/g, u["<"] ? "<" : "&lt;")
.replace(/&gt;/g, u[">"] ? ">" : "&gt;")
.replace(/&quot;/g, u['"'] ? '"' : '&quot;')
.replace(/&apos;/g, u["'"] ? "'" : "&apos;")
.replace(/&quot;/g, u['"'] ? '"' : "&quot;")
.replace(/&(?:apos|#39);/g, u["'"] ? "'" : "&apos;")
.replace(/&amp;/g, u["&"] ? "&" : "&amp;")
}