Entity x not defined
Pasqualle - September 20, 2009 - 03:54
| Project: | XLIFF Tools |
| Version: | 6.x-1.0-beta1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
DOMDocument::loadXML() [<a href='domdocument.loadxml'>domdocument.loadxml</a>]: Entity 'nbsp' not defined in Entity, line: 3 in modules\xliff\xliff.module on line 129.
DOMDocument::loadXML() [<a href='domdocument.loadxml'>domdocument.loadxml</a>]: Entity 'mdash' not defined in Entity, line: 3 in modules\xliff\xliff.module on line 129.http://usphp.com/manual/en/function.dom-domdocument-loadxml.php#74848
I can't export nodes with HTML special characters. Any ideas what should I check or modify?
The node is valid XHTML.

#1
Adding the doc type into loadXML seems like to work.
$doctype = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';$html->loadXML($doctype .'<html><head><title>'. check_plain($node->title) .'</title></head><body>' . $node->body . '</body></html>');