mirror of https://github.com/adamdruppe/arsd.git
more characters
This commit is contained in:
parent
74f72ca4c9
commit
8a925179ad
5
dom.d
5
dom.d
|
@ -2300,6 +2300,9 @@ dchar parseEntity(in dchar[] entity) {
|
||||||
case "lsquo": return '\u2018';
|
case "lsquo": return '\u2018';
|
||||||
case "rsquo": return '\u2019';
|
case "rsquo": return '\u2019';
|
||||||
|
|
||||||
|
case "Omicron": return '\u039f';
|
||||||
|
case "omicron": return '\u03bf';
|
||||||
|
|
||||||
// and handling numeric entities
|
// and handling numeric entities
|
||||||
default:
|
default:
|
||||||
if(entity[1] == '#') {
|
if(entity[1] == '#') {
|
||||||
|
@ -2323,7 +2326,7 @@ dchar parseEntity(in dchar[] entity) {
|
||||||
return cast(dchar) p;
|
return cast(dchar) p;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
return '?';
|
return '\ufffd'; // replacement character diamond thing
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(0);
|
assert(0);
|
||||||
|
|
Loading…
Reference in New Issue