Merge pull request #506 from lmckenzi/Better-handling-of-bad-xhtml-entity
If there's an ampersand that doesn't actually have a closing semi-col…
This commit is contained in:
commit
f83a4d95e8
|
@ -885,6 +885,8 @@ private boolean elementIsOk(String name) throws FHIRFormatError {
|
|||
// UInt16 w;
|
||||
readChar();
|
||||
String c = readUntil(";&'\"><");
|
||||
if (c.isEmpty())
|
||||
throw new FHIRFormatError("Invalid literal declaration following text: " + s);
|
||||
if (c.equals("apos"))
|
||||
s.append('\'');
|
||||
else if (c.equals("quot"))
|
||||
|
|
Loading…
Reference in New Issue