Ant
2 notes made

jQuery.htmlClean

This is a small add-in for jQuery which will take dirty old html, say from ms Word, and give it a proper scrubbing.

The first release of this code will;

  • fix self closing tags
  • lower-case tags
  • remove non-standard attributes
  • remove class attributes
  • remove in-line style attributes
  • remove in-line event attributes
  • tidy unnecessary white space and new lines
  • remove conditional commenting
  • remove proprietary word formatting tags

It does not give you a formatted result, it removes unnecessary white space and new line characters.

It also only returns the body of a html page. This will be a default option in the full version.

This is an open source project to be found at
http://code.google.com/p/jquery-clean/

The plug-in page on jQuery can be found here
http://plugins.jquery.com/project/htmlClean/

Try it out here

/Content/Demos/jQuery-htmlClean/Test.htm

scozzard

love this plugin. One thing - you link to the demo needs updating :)


Ant

oops - done - ta


Post a Note

(required)

(required never shown)

On Twitter Follow MrAntix on Twitter

1 hours ago
TheNextWeb
Bing's search API now live on the Windows Azure Marketplace http://t.co/utX8uOuG by @alex

15/05/2012
WindowsAzure
Announcing the MEET Windows Azure Event! Streamed online June 7th. Register at http://t.co/bObzTAuL  #MEETAzure #WindowsAzure

One hour ago
commadelimited
Buy the @amazon Kindle version of mine and @cfjedimaster's @jquerymobile book for $10 today: http://t.co/PWRZ2dkd

just now
islayian
RT @AdobeEdu: Learn the fundamentals of developing a mobile app using #Dreamweaver #CS6 & PhoneGap Build http://t.co/ENpgbktJ via @Mark_DuBois

just now
IT_Connection
RT @42windmills The Bing Search API on Windows Azure Marketplace is Here! #oneclickdeployment #42windmills http://t.co/3rtmgw3G