silverstripe/silverstripe-framework — pull request #3538 by halkyon (2014-10-10 00:46:05+00:00)
Title: Remove DOMDocument manipulation in HTMLText::Summary()

HHVM doesn't work consistently with PHP, in that invalid HTML will
not throw an exception when loading it into DOMDocument.

I don't think we need to use DOMDocument here at all, rather just
rely on the regexp entirely. This makes it more predictable.