Plugin

EE 1
EE 2
Clean HTML

Developer

codeTrio

3rd Party (Free)

MIT License Download v1.0

Compatibility

  • LG Addon Updater
  • Multi Site Manager
  • Stand Alone Entry Form

Requirements

  • jQuery for the Control Panel

Tags

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 - http://htmlpurifier.org/
HTML Tidy - http://www.w3.org/People/Raggett/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.

Parameters:
engine - tidy/purifier/custom. Which library want to use.
  tidy - http://www.w3.org/People/Raggett/tidy/
  purifier - http://htmlpurifier.org/
  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:
strip_tags_except=”<p><a>”

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
{/exp:clean_html}

Troubleshooting

Having problems? Contact codeTrio

Download Clean HTML

EE Version Downloads Add-On Version Release Date
2.+ Download 1.0 2012-04-10 11:13 PM

This entry was last updated April 12, 2012, 12: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!

There are no reviews for this add-on yet.

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