Skip to content

Instantly share code, notes, and snippets.

@crishoj
Created February 14, 2010 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crishoj/304064 to your computer and use it in GitHub Desktop.
Save crishoj/304064 to your computer and use it in GitHub Desktop.
@@ -248,5 +248,5 @@
if (is_array($val))
$val = str_replace("\n", ' ', print_r($val, true));
- $var_node = $node->addChild('var', $val);
+ $var_node = $node->addChild('var', htmlspecialchars($val));
$var_node->addAttribute('key', $key);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment