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

Function encode

modules/tinymce/src/core/main/ts/api/html/Styles.ts:167–171  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

165
166 // Encodes the specified string by replacing all \" \' ; : with _<num>
167 const encode = (str: string): string => {
168 isEncoded = true;
169
170 return encodingLookup[str];
171 };
172
173 // Decodes the specified string by replacing all _<num> with it's original value \" \' etc
174 // It will also decode the \" \' if keepSlashes is set to false or omitted

Callers 3

createHTMLFunction · 0.85
WriterFunction · 0.85
getPreviewHtmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…