8 lines
196 B
JavaScript
Raw Normal View History

2021-02-11 21:31:41 +08:00
"use strict";
module.exports = (html) => String(html)
.replace(/"/g, '"')
.replace(/'/g, '\'')
.replace(/:/g, ':')
.replace(/&lt;/g, '<')
.replace(/&gt;/g, '>');