I\'m using the Zend Framework\'s javascript helpers of the form:
headScript()->captureStart(); ?>
//Javascript here
h
I was actually just reading about this yesterday in their blog:
Their HTML in PHP parsing has been flaky, especially with indenting incorrectly short/alternate form code, but the latest nightly builds (I presume those after 201010060000) have improvements in that area. I haven't tried it yet but give it a shot.