Accept non-lowercase end HTML tags.
This commit is contained in:
parent
34cc9092c9
commit
905d09d82c
@ -2797,7 +2797,7 @@ static Result<vector<MessageEntity>> do_parse_html(CSlice text, string &result)
|
||||
while (!is_space(text[i]) && text[i] != '>') {
|
||||
i++;
|
||||
}
|
||||
Slice end_tag_name = text.substr(begin_pos + 2, i - begin_pos - 2);
|
||||
string end_tag_name = to_lower(text.substr(begin_pos + 2, i - begin_pos - 2));
|
||||
while (is_space(text[i]) && text[i] != 0) {
|
||||
i++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user