MCPcopy
hub / github.com/KaTeX/KaTeX / toText

Method toText

src/mathMLTree.ts:147–149  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

toTextMethod · 0.65

Tested by

no test coverage detected