Posted By

tillkruess on 11/06/09


Tagged

html xhtml whitespace clean indent indention


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

vali29


Clean / Indent XHTML Document


 / Published in: PHP
 

URL: http://pralinenschachtel.de/

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

Report this snippet  

Comments

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 snipplr.com has some display issues with windows line feeds in comments or whatever: http://nopaste.info/1cb01b379f.html

You need to login to post a comment.