Skip to content

Commit b5797e7

Browse files
committed
Use xmlNodeAddContentLen, does not process input text
IB-8475 Signed-off-by: Raul Metsma <raul@metsma.ee>
1 parent 7de9baf commit b5797e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/XMLDocument.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ struct XMLNode: public XMLElem<xmlNode>
232232
{
233233
if(!d)
234234
return *this;
235-
xmlNodeSetContent(d, pcxmlChar(text.data()));
235+
xmlNodeAddContentLen(d, pcxmlChar(text.data()), int(text.length()));
236236
return *this;
237237
}
238238

0 commit comments

Comments
 (0)