Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions /

PHP Tidy before sending the Output


Reply


2 Posts   1389 Views

Avatar
stefant42

Community Member, 14 Posts

2 April 2010 at 12:07am

Edited: 02/04/2010 12:07am

Hiho,

one short question. How can i parse/render/cleanup the complete output before Silverstripe sends to Client/Browser?

For Example, i want to cleanup the generated HTML with PHP Tidy.

Regards from Germany,

Stefan

Avatar
Hamish

Community Member, 712 Posts

3 April 2010 at 11:36am

I guess you have to modify ssviewer.. but why do you need tidy? 95% of your html lives in static template files - it will be very inefficient to parse and tidy the same responses when you could just fix your templates.