yiisoft/yii2 — pull request #6207 by Alex-Code (2014-11-24 15:55:33+00:00)
Title: truncate and truncateWords can now preserve HTML

Ref #3301
New `truncateHtml` method that uses `HTMLPurifier`