ndejong/CakephpEmogrifierPlugin — pull request #9 by joostdekeijzer (2014-02-11 14:15:57+00:00)
Title: Don't strictErrorCheck DOM, otherwise Cake doesn't continue

**Up for discussion**
I've run into an issue where the html (with user input) wasn't valid html. Eg. the ```&``` sign wasn't converted to ```&```

By default, the DOMDocument throws a DOMException effectively stopping CakePHP. See http://nl3.php.net/manual/en/class.domdocument.php#domdocument.props.stricterrorchecking

**Quick fix**
Don't strictErrorCheck (patch attached).

**Other option**
Construct a try-catch somewhere?

**Offcourse there is always**
Don't do anything in te code, but then maybe hint in the docs to have the developer try-catch around ```$email->send();```