ConvertStyle.php
authorEdward <edward@roojs.com>
Wed, 19 Feb 2014 09:39:11 +0000 (17:39 +0800)
committerEdward <edward@roojs.com>
Wed, 19 Feb 2014 09:39:11 +0000 (17:39 +0800)
ConvertStyle.php

index 716035b..26e21c8 100644 (file)
@@ -133,7 +133,7 @@ class Pman_Core_ConvertStyle extends Pman
 //            }
 //        }
         
-        foreach ($xpath->query('//style') as $s){
+        foreach ($xpath->query('//style/text()') as $s){
             $style = $doc->saveHTML($s);
             print_r($style);
 //            $this->styleSheets[] = $this->$this->replaceImageUrl($s)