dmBridge PHP API
DMDOMDocument.php
00001 <?php
00002 #
00003 # dmBridge: a data access framework for CONTENTdm(R)
00004 #
00005 # Copyright © 2009, 2010, 2011 Board of Regents of the Nevada System of Higher
00006 # Education, on behalf of the University of Nevada, Las Vegas
00007 #
00008 
00016 class DMDOMDocument extends DOMDocument {
00017 
00022    public function saveHTML() {
00023       return preg_replace('/^<!DOCTYPE.+?>/', '',
00024             str_replace(array('<html>', '</html>', '<body>', '</body>'),
00025                   array('', '', '', ''),
00026                   parent::saveHTML()));
00027    }
00028 
00029 }
 All Data Structures Functions Variables