Skip to content

matthewp/text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

text

Cross-browser DOM text manipulation. Don't worry about textContent vs innerText again.

Installation

$ component install matthewp/text

API

var text = require('text');

text(el)

Retrieve the text for the given element.

text(el, val)

Set the text for the given element to val.

License

MIT

About

Cross browser DOM inner text manipulation

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •