first commit

This commit is contained in:
Beyhan Oğur
2026-04-26 21:33:39 +03:00
commit 4362c3b83f
1991 changed files with 285411 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
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