Skip to content
Snippets Groups Projects
Commit 3af30fc2 authored by Mark Harrison's avatar Mark Harrison
Browse files

Merge -r94:95 from markdevel to trunk (xml escapes)

git-svn-id: https://labs.omniti.com/resmon/trunk@96 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55
parent 748aca8e
No related branches found
No related tags found
No related merge requests found
...@@ -63,6 +63,10 @@ sub xml_kv_dump { ...@@ -63,6 +63,10 @@ sub xml_kv_dump {
$rv .= "</$key>\n"; $rv .= "</$key>\n";
} }
else { else {
$value =~ s/&/&amp;/g;
$value =~ s/</&lt;/g;
$value =~ s/>/&gt;/g;
$value =~ s/'/&apos;/g;
$rv .= "<$key>$value</$key>\n"; $rv .= "<$key>$value</$key>\n";
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment