This commit is contained in:
Thomas Krijnen
2017-09-10 16:59:05 +02:00
parent f6645b19ef
commit 4f31b9467a
2 changed files with 27 additions and 16 deletions
+2 -2
View File
@@ -161,20 +161,20 @@ void IfcUtil::sanitate_material_name(std::string &str)
void IfcUtil::escape_xml(std::string &str)
{
boost::replace_all(str, "&", "&");
boost::replace_all(str, "\"", """);
boost::replace_all(str, "'", "'");
boost::replace_all(str, "<", "&lt;");
boost::replace_all(str, ">", "&gt;");
boost::replace_all(str, "&", "&amp;");
}
void IfcUtil::unescape_xml(std::string &str)
{
boost::replace_all(str, "&amp;", "&");
boost::replace_all(str, "&quot;", "\"");
boost::replace_all(str, "&apos;", "'");
boost::replace_all(str, "&lt;", "<");
boost::replace_all(str, "&gt;", ">");
boost::replace_all(str, "&amp;", "&");
}
std::vector<std::string> IfcUtil::IfcBaseEntity::getAttributeNames() const {