Jump to:

3393 Posts in 976 Topics by 852 members

Template Questions

SilverStripe Forums » Template Questions » PHP Tidy before sending the Output

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

Page: 1
Go to End
Author Topic: 1255 Views
  • stefant42
    Avatar
    Community Member
    14 Posts

    PHP Tidy before sending the Output Link to this post

    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

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: PHP Tidy before sending the Output Link to this post

    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.

    1255 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.