What happens if you do this:
<div class="entry">
<p id="blabla">[[+introtext:default=`
[[+content:striptags:ellipsis=`400`]]` ]]</p>
</div>
<p class="postmeta">
Ellipisis by itself is unreliable with HTML code because tags may not be closed.
You can also do this to cut things off at a word boundary:
[[+content:striptags:ellipsis=`300`:WholeWords]]
<?php
/* WholeWords snippet */
$pos = strrpos($input, ' ');
return substr($input, 0, $pos);
Even with all that, it may not work the way you're using it because of the parsing order. You may need to use a custom snippet, which would look something like this (untested), which would be faster anyway:
<div class="entry">
<p id="blabla">[[+introtext:WholeWords`]]</p>
</div>
<p class="postmeta">
<?php
/* WholeWords snippet */
if (! empty($input)) {
return $input;
} else {
$input = $modx->resource->getContent();
$input = $modx->stripTags($input);
$input = substr($input,0,400);
$pos = strrpos($input, ' ');
return substr($input, 0, $pos);
}
If you want to preserve the tags in the content, it gets significantly more complicated.
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODX info for everyone:
http://bobsguides.com/modx.html