Permalink
Browse files

sanitze/sanitize

  • Loading branch information...
1 parent 3a4076d commit 0235adbfc2ff69a5e6546eb6c77d5bf88b068304 @CloCkWeRX CloCkWeRX committed Dec 9, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 XML/Feed/Parser/Type.php
View
@@ -247,7 +247,7 @@ protected function getText($method, $arguments = array())
$tags = $this->model->getElementsByTagName($method);
if ($tags->length > 0) {
$value = $tags->item(0)->nodeValue;
- return $this->sanitizer->sanitze($value);
+ return $this->sanitizer->sanitize($value);
}
return false;
}
@@ -279,11 +279,11 @@ protected function getCategory($call, $arguments)
if ($array) {
$list = array();
foreach ($categories as $category) {
- array_push($list, $this->sanitizer->sanitze($category->nodeValue));
+ array_push($list, $this->sanitizer->sanitize($category->nodeValue));
}
return $list;
}
- return $this->sanitizer->sanitze($categories->item($offset)->nodeValue);
+ return $this->sanitizer->sanitize($categories->item($offset)->nodeValue);
}
/**
@@ -346,7 +346,7 @@ function processEntitiesForNodeValue($node)
return utf8_encode(htmlentities(html_entity_decode($node->nodeValue, NULL, 'UTF-8'), NULL, 'UTF-8'));
}
- return $this->sanitizer->sanitze(
+ return $this->sanitizer->sanitize(
htmlentities(
html_entity_decode($node->nodeValue, NULL, 'UTF-8'),
NULL, 'UTF-8'
@@ -416,15 +416,15 @@ protected function getContent()
$value = '';
foreach ($test->item(0)->childNodes as $child) {
if ($child instanceof DOMText) {
- $value .= $this->sanitizer->sanitze($child->nodeValue);
+ $value .= $this->sanitizer->sanitize($child->nodeValue);
} else {
$simple = simplexml_import_dom($child);
$value .= $simple->asXML();
}
}
return $value;
} else if ($test->length > 0) {
- return $this->sanitizer->sanitze($test->item(0)->nodeValue);
+ return $this->sanitizer->sanitize($test->item(0)->nodeValue);
}
}
return false;

0 comments on commit 0235adb

Please sign in to comment.