Last active
August 29, 2015 14:09
-
-
Save lwhsu/7fddad9b4ce674a447d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /usr/local/bin/igor 2014-10-10 09:28:12.000000000 +0800 | |
+++ igor 2014-11-18 03:46:21.000000000 +0800 | |
@@ -389,6 +389,8 @@ sub xmlize { | |
my $txt = shift; | |
$txt =~ s/'/\$apos;/g; | |
$txt =~ s/"/\$quot;/g; | |
+ $txt =~ s/</\$lt;/g; | |
+ $txt =~ s/>/\$gt;/g; | |
return $txt; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment