modxcms/revolution — pull request #584 by oo12 (2013-08-25 05:50:34+00:00)
Title: Make ellipsis filter more robust

Fix ellipsis so it doesn't incorrectly "close" <br>, <hr>, etc., and also improve speed some.

The current version will turn:

Lorem
ipsum

break here

into:

Lorem
ipsum

break…

This version uses DOMDocument for more robust handling of the HTML fragment. If DOMDocument isn't available, it uses another solution, which while it isn't quite as robust is still more accurate than the current version, in addition to being considerably faster.