laravel/framework — pull request #902 by g3dut1s (2013-04-12 08:42:29+00:00)
Title: [Proposal] Fix for HtmlBuilder and FormBuilder for correct xHTML

I need this for my project where I am using xHTML MP 1.2. Since I am quite new to Laravel, I am not sure whether it is a good idea to implement that stuff like I did.

In addition, I created a doctype function for just shorter syntax.

In my view, the config `app/config/html.php` should look like this:
```php
return array(

/*
|--------------------------------------------------------------------------
| Markup
|--------------------------------------------------------------------------
|
| Here you may specify the markup for HTML Builder and Form builder for
| correct tags rendering.
|
| Supported: 'html', 'xhtml'
|
*/

'markup' => 'html',

/*
|--------------------------------------------------------------------------
| Document Type Declaration
|--------------------------------------------------------------------------
|
| Here you can specify the default document type, which will be used
| with HTML::doctype
|
*/

'doctype' => 'html5',

/*
|--------------------------------------------------------------------------
| List Of Doctypes
|--------------------------------------------------------------------------
|
| Taken from:
| - http://www.w3schools.com/tags/tag_doctype.asp
| - http://en.wikipedia.org/wiki/Document_type_declaration
|
*/

'doctypes' => array(

'html5' => '',

'html-strict' => '',
'html-transitional' => '',
'html-frameset' => '',

'xhtml' => '',
'xhtml-strict' => '',
'xhtml-transitional' => '',
'xhtml-frameset' => '',

'xhtml-basic' => '',
'xhtml-mp10' => '',
'xhtml-mp11' => '',
'xhtml-mp12' => ''

)

);
```

Tests included.