centurion-project/Centurion — Issue #51: ZFDebug breaks HTML validation
Author: DiaFR
Created: 2012-02-22 09:57:38+00:00
State: open

* library\Centurion\ZFDebug\Controller\Plugin\Debug.php :: _output($html)

```php
$response->setBody(preg_replace('/(<\/head.*>)/i', '$1' . $this->_headerOutput(), $response->getBody()));
```
should be

```php
$response->setBody(preg_replace('/(<\/head.*>)/i', $this->_headerOutput() . '$1', $response->getBody()));
```
currently, scripts and styles are added after head closing tag!

* library\Centurion\ZFDebug\Controller\Plugin\Debug.php :: _getVersionPanel()

```php
'

©2008-2009 Joakim Nygård & Andreas Pankratz

' .
```
should be

```php
'

©2008-2009 Joakim Nygård & Andreas Pankratz

' .
```
& encoding

* br tags

no check done on doctype, force "< br >"
so no closing slash with XHTML doctype