Posted By

tillkruess on 11/06/09


html xhtml whitespace clean indent indention

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Clean / Indent XHTML Document

 / Published in: PHP


Do you every wanted to clean and perfectly intent your xhtml document?

Report this snippet  


RSS Icon Subscribe to comments
Posted By: tillkruess on November 6, 2009

Just try something like:

$contents = file_get_contents(dirname(__FILE__).'/index.html'); 
print clean_xhtml($contents);
Posted By: tillkruess on December 2, 2009

looks like has some display issues with windows line feeds in comments or whatever:

You need to login to post a comment.