Fix bug in named entity method

initial character should be the next instead of current in the stream
This commit is contained in:
iska
2014-10-26 16:37:48 +01:00
parent 971f7b3cf0
commit f45c9d33a6
+1 -1
View File
@@ -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)];