fallentext

1.0.0 • Public • Published

npm Node.js CI

🍂fallentext

A mimic implementation of HTMLElement.innerText

Important notes:

  • Does not take CSS styling or layout into account .
  • Treats <title> value as text, if given <html> as the root node.
  • Treats alt attribute values as text.
  • Treats SVG <title>, <desc>, <text> values as text, regardless if contained in <defs>.
  • Treats MathML <mtext> values as text.
  • Can be used with jsdom, for use with Node.js

Readme

Keywords

none

Package Sidebar

Install

npm i fallentext

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

10.8 kB

Total Files

4

Last publish

Collaborators

  • jccr