enhanced unescape_html
This commit is contained in:
parent
c187837f8d
commit
9f730e4ff0
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required (VERSION 3.7)
|
||||
project (mastorss
|
||||
VERSION 0.5.1
|
||||
VERSION 0.5.2
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ void unescape_html(string &str)
|
|||
str = "";
|
||||
// Used to convert int to utf-8 char
|
||||
std::wstring_convert<std::codecvt_utf8<char16_t>, char16_t> u8c;
|
||||
std::regex reentity("&#(\\d{4});");
|
||||
std::regex reentity("&#(\\d{2,4});");
|
||||
std::smatch match;
|
||||
|
||||
while (std::regex_search(html, match, reentity))
|
||||
|
|
Loading…
Reference in New Issue
Block a user