mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-22 08:21:52 +00:00
Restructure directory to make it more amenable to CSS by merging output with ./
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@400 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
aa0838492e
commit
9dd4dcb27a
@ -84,8 +84,8 @@ foreach($definition->info as $namespace_name => $namespace_info) {
|
||||
|
||||
// print_r($dom_document->saveXML());
|
||||
|
||||
// save a copy of the raw XML for good measure
|
||||
$dom_document->save('output/configdoc.xml');
|
||||
// save a copy of the raw XML
|
||||
$dom_document->save('configdoc.xml');
|
||||
|
||||
// load the stylesheet
|
||||
$xsl_stylesheet_name = 'plain';
|
||||
@ -104,7 +104,7 @@ $html_output = $xsl_processor->transformToXML($dom_document);
|
||||
$html_output = str_replace('/>', ' />', $html_output); // <br /> not <br>
|
||||
|
||||
// write it to a file (todo: parse into seperate pages)
|
||||
file_put_contents("output/$xsl_stylesheet_name.html", $html_output);
|
||||
file_put_contents("$xsl_stylesheet_name.html", $html_output);
|
||||
|
||||
// output so you can see the fruits of your work!
|
||||
echo $html_output;
|
||||
|
Loading…
Reference in New Issue
Block a user