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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

PHP Tidy before sending the Output


Go to End


2 Posts   2865 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.