Update WriteHelpers.h

This commit is contained in:
alexey-milovidov 2020-12-11 00:09:52 +03:00 committed by GitHub
parent 15eb2addd1
commit f7d1441858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -604,17 +604,20 @@ inline void writeXMLStringForTextElementOrAttributeValue(const char * begin, con
buf.write(pos, next_pos - pos);
++next_pos;
writeCString("&", buf);
}else if (*next_pos == '>')
}
else if (*next_pos == '>')
{
buf.write(pos, next_pos - pos);
++next_pos;
writeCString(">", buf);
}else if (*next_pos == '"')
}
else if (*next_pos == '"')
{
buf.write(pos, next_pos - pos);
++next_pos;
writeCString(""", buf);
}else if (*next_pos == '\'')
}
else if (*next_pos == '\'')
{
buf.write(pos, next_pos - pos);
++next_pos;