This is done near the top of the dispComment() function, in Slash.pm. Basically, we call chopEntity() which truncates to a given size without interrupting an HTML entity; strip_html() which takes out any illegal HTML tags; then balanceTags() which rebalances everything. Those are all in Slash::Utility::Data.
You can ignore the </A> fixing and addDomainTags() since you won't be using that of course.
- Jamie
In reply to Re: Truncating HTML early
by Anonymous Monk
in thread Truncating HTML early
by nop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |