The Wayback Machine - https://web.archive.org/web/20230109110056/https://github.com/amark/normalize
Skip to content

amark/normalize

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

normalize

Turn ugly

<p>
  <b>
    hi
  </b>
  <i>
    <b>
      yay!
    </b>
  </i>
</p>

into beautiful

<p>
  <b>
    hi 
    <i>
      yay!
    </i>
  </b>
</p>

With just a touch of

normalize(element, config);

Where config is optional, having pleasant defaults, but extendable for your amusement.

##API Docs coming soon! Peruse the source for now, it is decently tiny, and the built in config explains most of it. Depends upon the delightful jQuery.

Crafted with love by Mark Nadal, whom is not responsible for any liabilities from the use of this code.

About

Filter, sanitize, cleanse, and even diff your HTML.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published