Currently when multibyte string is used in tags, the string is truncated at the beginning - parser consumes several bytes of text.
Larger text - more bytes will be consumed. Even there are conditions when consumed half of multibyte character that leads to curious result.
Currently when multibyte string is used in tags, the string is truncated at the beginning - parser consumes several bytes of text. Larger text - more bytes will be consumed. Even there are conditions when consumed half of multibyte character that leads to curious result.
When the source contains
The result looks like:
This PR fixes the problem. Specs are also added.