Balancing Tags in HTML and XHTML Excerpts

It is fairly common to want to take an HTML source of variable length and display an excerpt. Although some formats, such as Atom and RSS, anticipate this and create a separate summary element, we don’t always have the luxury of using such a data source. Creating an excerpt introduces a problem, though: if we … Continue reading Balancing Tags in HTML and XHTML Excerpts