MCPcopy Index your code
hub / github.com/tinymce/tinymce / escapeHtml

Function escapeHtml

modules/tinymce/rspack.config.js:7–13  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

5const { TsCheckerRspackPlugin } = require('ts-checker-rspack-plugin');
6
7const escapeHtml = (str) => str.replace(/[&<>"']/g, (m) => ({
8 '&': '&amp;',
9 '<': '&lt;',
10 '>': '&gt;',
11 '"': '&quot;',
12 "'": '&#39;'
13})[m]);
14
15const generateDemoIndex = (app) => {
16 const demoList = fg.sync(['src/**/demo/html/*.html', 'src/**/demo/html/**/*.html'], { cwd: __dirname });

Callers 1

generateDemoIndexFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…