Feedback
For support related questions and bug-reports please use the form over here.Free Aqua Zoo
Pingbacks
1.
10 useful ExpressionEngine plugins | 3RM Design Blog
on 2010-07-06 19:57:52:
[...]TruncHTML – Ryan is the senior web developer at[...]
2. My Standard ExpressionEngine Addons | Jack McDade
on 2009-02-18 08:12:39:
[...]will. It changed my life. Kind of. ThruncHTML Type: Plugin Price: Free[...]
TruncHTML
| Version | Released | Type | License |
|---|---|---|---|
| 1.3.2 | 2009-09-02 | Plugins | Freeware (?) |
| ⇒ TruncHTML for EE 2 | |||
The difference is, that TruncHTML is HTML-aware, so you can use it to shorten HTML-formatted text and keep the markup without being afraid of breaking it.
Unlike the standard limiter-plugins it does not count characters that belong to HTML-tags and does not cut-off in the middle of tags.
| Example: Limit to 16 characters. |
Take a look <a href="ref.html"><img src="arrow.gif" /></a> at this page.
|
| TruncHTML: |
Take a look <a href="ref.html"><img src="arrow.gif" /></a> at
|
| Standard char_limit: |
Take a look <a href="ref.html"><img…
|
Furthermore it tries its best to close all tags that remain open after the text has been limited.
So if you limit the following text to 80 chars...
<p class="quote"><b>Never let your sense of morals get in the way of doing whats right.<br />
<em>Isaac Asimov</em></b></p>
the result will be ...
<p class="quote"><b>Never let your sense of morals get in the way of doing whats right.<br />
<em>Isaac</em></b></p>
instead of ...
<p class="quote"><b>Never let your sense of morals get in the way of doing whats
... which would probably screw the rest of the page.
[...]there wouldn’t be anything wrong with a separate plugin that is content aware. Silenz’s TruncHTML does a fabulous job with that, in fact I use it myself, and I don’t particularly see a reason for a first party solution to be made.[...]
Derek Jones, EllisLab
Freeware means you may use this addon free of
charge in as many installations as you like.
Comments
2011-11-28 15:54
I done a research on the issue and learnt most peoples will agree with your blog. Certainly, these practices are unfair; but they say that most of their rules are only to apply to people who overdraw. frases para conquistar uma amiga
2011-11-28 11:04
I agree with some of it not all of it. interesting post found some new things out i did not ralize before on this website.
2011-11-26 23:00
Is there anyway that I can modify the plugin code to strip out certain html tags I set like an img tag?
2011-07-25 15:19
The previous 2 posts are spam, FYI.
2011-07-25 14:07
TruncHTML seems to be very stable and easy to implement. I think is one of the most stable solution for this and has a good download rate.
2009-12-18 23:28
Just wanted to add a +1 for the feature of stripping out certain elements, or even stripping out certain elements with certain attributes (like a class name). Like Sam, I too have images in my posts that I’d like to strip, but I also have captions that are made like so: caption here and it would be amazing to have the ability to target those as well.
Thanks again for the hard work on this plugin, it’s really worked out well for me!
2009-09-14 09:31
Hi Oliver,
I love the trunchtml pluin. I’m using it for an excerpt of a blog post. My problem is I have images in my post that I want stripped out. Is there anyway that I can modify the plugin code to strip out certain html tags I set like an img tag? Thank you for any help you can provide me.
2009-05-15 03:32
Just a note to other users. If you want a link at the end to the full post and you put the link in the ending=”” parameter it will appear below the text. However if you add that link to the inline=”” parameter it will flow directly with the rest of the text.