utilitees

- Addons for ExpressionEngine 1.7.x

Cleaner Documentation

Download Download

Installation

Unzip the archive and copy the file pi.cleaner.php into the plugins-directory inside your Expression Engine system-directory.

Back to top

 

Usage:

{exp:cleaner}
     {body}
{
/exp:cleaner} 
Back to top

 

Parameters:

charset="iso-8859-1" 

Optional. If your website uses a different charset than utf-8 you need to pass it to the plugin using this parameter.

limit="200" 

Optional. Limits the output to the specified length.

Back to top

 

Questions / bug reports

For general comments, brickbats & bouquets please use the form over here.
Name:

Email:

URL:


Remember my personal information
Notify me of follow-up comments?


Page 1 of 1 pages

User Talk

Oliver:
2010-01-14 21:15

All of these are intended for 1.6.8.

The 2.0 version will be released when the next EE build hits the streets.



Richard Bird:
2010-01-14 17:31

Is Cleaner v1.1 now compatible with EE 2.0?



smartpill:
2009-12-16 20:39

Good question. Maybe allow the user to specify a tag or tags—but in this case I’d need to specify a wildcard since the tags are all {media_1}, {media_2}, etc. depending on FF matrix row. so something like exclude=”{media_*}” or something.



Oliver:
2009-12-15 09:38

How would I differentiate EE tags that serve a special purpose (like yours) from those that are content?



smartpill:
2009-12-08 01:12

Is it possible to have Cleaner remove EE tags that are in content also? I’m using the FF Matrix/LG Replace method of placing photos and videos and the {media_1} tags that are in the content are still appearing.



Oliver:
2008-12-24 00:11

No time wasted.

I had been trying different options because Cleaner displays the HTML entity rather than the punctuation when you hover over and see the title.

Can you give an example for this? Perhaps there’s something that can be done about it.



Paul Frost:
2008-12-22 23:09

I’m sorry to have wasted your time, but I can’t replicate it again.
I had wrapped it, but I had been using the html_strip plugin before and that is producing that error now. So maybe it was some sort of cache issue I had.

I had been trying different options because Cleaner displays the HTML entity rather than the punctuation when you hover over and see the title.



Oliver:
2008-12-22 22:03

Have you actually enclosed the {summary}-variable with the cleaner-tags?



Paul Frost:
2008-12-21 23:05

I am getting a problem with email addresses.
I am using this plugin to put the {summary} field into a hyperlink title=”{summary}”

But if there is an email address in the field it doesn’t remove it as the example says but inserts a load of code:
//= 0; i=i-1){ if (l.substring(0, 1) == ’ ‘) output += “&#”+unescape(l.substring(1))+”;”; else output += unescape(l); } document.getElementById(‘eeEncEmail_WS80tSsteV’)[removed] = output; //]]>

Which screws up the link by adding anything after the above into the link text.