xml-escape the tail in an XmlNode
This commit is contained in:
1 parent
d6832fbcc9
commit
050cf1fd60
1 file changed
+2
-2
@@ -114,12 +114,12 @@ void XmlNode::set_attribute(const std::string& name, const std::string& value)
|
|||||||
|
|
||||||
void XmlNode::set_tail(const std::string& data)
|
void XmlNode::set_tail(const std::string& data)
|
||||||
{
|
{
|
||||||
this->tail = data;
|
this->tail = xml_escape(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
void XmlNode::add_to_tail(const std::string& data)
|
void XmlNode::add_to_tail(const std::string& data)
|
||||||
{
|
{
|
||||||
this->tail += data;
|
this->tail += xml_escape(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
void XmlNode::set_inner(const std::string& data)
|
void XmlNode::set_inner(const std::string& data)
|
||||||
|
|||||||
Reference in new issue
Block a user