Hello once again with one more question….
here’s the problem with the World Limit Plugin
I want to limit my {body} words to 65 and I do this with the code:
<div class="entry">
{exp:word_limit total="65"}
{body}
{/exp:word_limit}
</div>
The problem is when i do that, if the last word in the post ends with an italic or bold word, the rest of the text from that post in the blog becomes either italic or bold.
I can not figure it out…. help.
Thanx.
[Moderator Edit: Moved to Plugin Questions forum]
This problem is inheritant with this kind of plugins. You can only strip all HTML coding before truncation. There is another plugin available from mdesign, that does this: eexcerpt. However, all formating and styling will be lost using this approach.
-Markus
Or TruncHTML. It limits by number of characters, though. But it doesn’t count chars in HTML-tags, doesn’t truncate in the middle of tags and tries to close all tags that are left open.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.