Cleaner Documentation
Installation
Unzip the archive and copy the file pi.cleaner.php into the plugins-directory inside your Expression Engine system-directory.
Usage:
{exp:cleaner}
{body}
{/exp:cleaner}
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.
Questions / bug reports
For general comments, brickbats & bouquets please use the form over here.Page 1 of 1 pages
User Talk
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.
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.
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.
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.