Plugin Directory

Changeset 567050


Ignore:
Timestamp:
07/03/2012 08:01:08 PM (14 years ago)
Author:
mosseh
Message:
 
Location:
selective-reading/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • selective-reading/trunk/readme.txt

    r566056 r567050  
    4949== Changelog ==
    5050
     51= 0.2 =
     52* Fixes minor issue with extraneous html and body tags being generated around categories widget
     53
    5154= 0.1 =
    5255* Category widget is updated with show/hide links for each category
  • selective-reading/trunk/selective-reading.php

    r566019 r567050  
    5757        }
    5858       
    59         $content = $dom->saveHTML();
     59        // http://www.php.net/manual/en/domdocument.savehtml.php
     60        $content = preg_replace('/^<!DOCTYPE.+?>/', '', str_replace( array('<html>', '</html>', '<body>', '</body>'), array('', '', '', ''), $dom->saveHTML()));
    6061        return $content;
    6162    }
Note: See TracChangeset for help on using the changeset viewer.