Fix php issue: DomDocument::SaveHtml is wrong for php version < 5.3.6 (same as issue #5 for drupal module)