Merge pull request #160 from Alkarex/patch-1

SimplePie : Corrige le cas des </body> et </html>
This commit is contained in:
Marien Fressinaud committed 2013-09-14 10:58:36 -07:00
commit ca45605acf
1 file changed
+1
+1
View File
@@ -379,6 +379,7 @@ class SimplePie_Sanitize
protected function preprocess($html, $type)
{
$ret = '';
$html = preg_replace('%</?(?:html|body)[^>]*?'.'>%is', '', $html);
if ($type & ~SIMPLEPIE_CONSTRUCT_XHTML)
{
// Atom XHTML constructs are wrapped with a div by default