mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 20:55:53 +08:00
add Note why escape white character in XML
This commit is contained in:
parent
1fa532c624
commit
b71b42b9f3
@ -956,7 +956,8 @@ std::string xml_escape(std::string text, bool is_marked/* = false*/)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Definition of escape symbols https://www.w3.org/TR/REC-xml/#AVNormalize
|
// Definition of escape symbols https://www.w3.org/TR/REC-xml/#AVNormalize
|
||||||
|
// During the read of xml attribute normalization of white spaces is applied
|
||||||
|
// Soo for not lose white space character it is escaped before store
|
||||||
std::string xml_escape_double_quotes_attribute_value(std::string text)
|
std::string xml_escape_double_quotes_attribute_value(std::string text)
|
||||||
{
|
{
|
||||||
std::string::size_type pos = 0;
|
std::string::size_type pos = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user