zendframework/zf2 — pull request #1111 by sasezaki (2012-04-28 03:21:37+00:00)
Title: [Hotfix][Filter] ZF-11344

sync svn 24004, 24006, 24009,
and add Zend\Filter\Exception\DomainException for zf2.

--
handle encoding mismatches in HtmlEntities filter

- Detect when encoding mismatches occur
- Convert value to filter's encoding, ignoring unknown characters, and
re-run htmlentities()
- If the filtered string is empty, but the original had a value, we have
to assume we ran into errors and that the resulting string may fail
validation criteria. Raise an exception in such cases.