View Single Post
Old 04-21-2017, 02:40 PM   #14
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,773
Karma: 731681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
Quote:
Originally Posted by cramoisi View Post
Also, the reason people use less & nbsp is because it doesn't validate xhtml or XML in html5 for the only html entities you can have in a xml are & amp lt gt, quot and apos (but it's like my opinion )
It most definitely validates as XHTML since it's part of the DTD (see here). In XHTML5 they would be undefined by default due to the lack of a DTD (see here), but as far as valid XML goes you could just copy the old definitions if you wanted to use them. Something along these lines should to the trick.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html [
<!ENTITY nbsp   "*"> <!-- no-break space = non-breaking space,
                                  U+00A0 ISOnum -->
]>
<html xmlns="http://www.w3.org/1999/xhtml">
NB I'm not saying a thing about EPUB.
Frenzie is offline   Reply With Quote