Fix bug in named entity method
initial character should be the next instead of current in the stream
This commit is contained in:
@@ -282,7 +282,7 @@
|
||||
|
||||
NSString *entityName = nil;
|
||||
|
||||
UTF32Char inputCharacter = [_inputStreamReader currentInputCharacter];
|
||||
UTF32Char inputCharacter = [_inputStreamReader consumeNextInputCharacter];
|
||||
NSArray *names = [HTMLTokenizerEntities entityNames];
|
||||
NSMutableString *name = [NSMutableString stringWithString:StringFromUTF32Char(inputCharacter)];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user