Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jeremenichelli/empty

Light weight script to clean a node's content
https://github.com/jeremenichelli/empty

Last synced: 16 days ago
JSON representation

Light weight script to clean a node's content

Awesome Lists containing this project

README

        

# empty [![Build Status](https://travis-ci.org/jeremenichelli/empty.svg)](https://travis-ci.org/jeremenichelli/empty)

Fastest and cross-browsing way to clean the content in a node.

## Install

If you want to use ```empty```in your project you can just add a script tag to it.

```

```

## Use

```js
var node = document.getElementById('sample');

empty(node);
```