// 移除字符串中的 HTML 标签,返回移除数量
int RemoveHTMLLabel(std::string& str)
{
for (int i = 0;; i++)
{
auto startpos = str.find("<");
auto endpos = str.find(">") + 1;
if (startpos == string::npos || endpos == std::string::npos)
{
return i;
}
else
{
str.erase(startpos, endpos - startpos);
}
}
}