Clean HTML



3rd Party (Free)

1 downloads (last 90 days)

MIT License Download v1.0

EE Version Support

  • ExpressionEngine 2


If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher


  • jQuery for the Control Panel

Add-On Type(s)



This plugin cleans dirty html code. Also you can truncate string to a specific length and returned string will have valid markup in it.

This plugin cleans dirty html code. Also you can truncate string to a specific length and returned string will have valid markup in it.

This come with three parser. HTML Purifier, Tidy and custom
HTML Purifier -
HTML Tidy -, you server must have this support
custom - native dirty html cleaning method

From all of this, HTML Purifier is little slower than other but it works great, also need the library files with the plugin. HTML Tidy is little faster than HTML Purifier but your server must have the php tidy package. Custom is faster than all other but i need to improve this more.

engine - tidy/purifier/custom. Which library want to use.
  tidy -
  purifier -
  custom - native
  Default value is purifier. Its a optional field.
excerpt_size - Optional. To truncate suppplied string to specific number of words.
strip_tags - yes/no. Default is no. Strip HTML tags from a string
strip_tags_except - Tags that should not be removed from supplied string. For example:

To use this plugin, wrap anything you want to be processed by it between these tag pairs:

{exp:clean_html excerpt_size=“120” engine=“tidy”}
text and html code you want to clean


Having problems? Contact codeTrio

Download Clean HTML

EE Support Downloads Add-On Version Release Date
Not Specified Download 1.0 Apr 11, 2012

This entry was created November 29, 2010, 1:08 pm.
This entry was last updated April 12, 2012, 1:45 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at to initiate your return. If you have questions, email

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!