Files
NapCatQQ/.pnpm-store/v3/files/8f/d8197f5c946840830907cce30604b7ab4b3001c81bb98dfa86d8cc805def261f30322bd9b156a9eac6ba6316f287f2a78d167e2258f1e662b50d60b07ebc8f
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

16 lines
361 B
Plaintext

import { TextBlot } from 'parchment';
class Text extends TextBlot {}
// https://lodash.com/docs#escape
const entityMap = {
'&': '&',
'<': '&lt;',
'>': '&gt;',
'"': '&quot;',
"'": '&#39;'
};
function escapeText(text) {
return text.replace(/[&<>"']/g, s => entityMap[s]);
}
export { Text as default, escapeText };
//# sourceMappingURL=text.js.map