Possible Duplicate:
How to replace with   in an html file
I am using the following DTD in my html document. But when the page renders in the browser the last 2 characters ]>, visible in the page.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" [
<!ENTITY nbsp " "> ] />
Can anybody please tell me whats wrong with this declaration ?
A validator will show that you have a syntax error in the Doctype declaration. Take the
/off the end. It is not a self-closing element tag.Also note that, in text/html at least, browsers have a very odd relationship with SGML and XML treating Doctypes as magic strings to determine Quirks/Standards mode rather then for their intended purpose. I wouldn’t customise DTDs outside of application/xhtml+xml myself.