MCPcopy Create free account
hub / github.com/KaTeX/KaTeX / toText

Method toText

src/mathMLTree.ts:143–145  ·  view source on GitHub ↗

* Converts the math node into a string, similar to innerText, but escaped.

()

Source from the content-addressed store, hash-verified

141 * Converts the math node into a string, similar to innerText, but escaped.
142 */
143 toText(): string {
144 return this.children.map(child => child.toText()).join("");
145 }
146}
147
148/**

Callers

nothing calls this directly

Calls 1

toTextMethod · 0.65

Tested by

no test coverage detected