This will happen when a class that the sanitiser relies on is not installed on your server.
Unfortunately this isn’t something we can help with but these posts should help point you in the right direction.
http://php.net/manual/en/class.domdocument.php
https://stackoverflow.com/questions/14395239/class-domdocument-not-found
Class ‘DOMDocument’ not found