|
10 | 10 | | For more info please visit https://github.com/Stolz/laravel-html-tidy |
11 | 11 | | |
12 | 12 | */ |
13 | | -return array( |
| 13 | +return [ |
14 | 14 |
|
15 | 15 | // Enable if PHP has tidy extension support |
16 | 16 | 'enabled' => extension_loaded('tidy'), |
17 | 17 |
|
18 | | - /*// Filter AJAX requests |
| 18 | + // Process AJAX requests |
19 | 19 | 'ajax' => false, |
20 | 20 |
|
21 | 21 | // Encoding of your original documents. This refers to the encoding that you original documents have, |
|
35 | 35 | 'container_close_tag' => '</div>', |
36 | 36 |
|
37 | 37 | // Options passed to HTML Tidy parseString() function. Docs: http://tidy.sourceforge.net/docs/quickref.html |
38 | | - 'tidy_options' => array( |
| 38 | + 'tidy_options' => [ |
39 | 39 | 'output-xhtml' => true, |
40 | 40 | 'char-encoding' => 'utf8', |
41 | 41 | 'wrap' => 0, |
|
45 | 45 |
|
46 | 46 | // HTML5 workarounds |
47 | 47 | 'doctype' => 'omit', //The filter will add the configured doctype later |
48 | | - 'new-blocklevel-tags' => 'article,aside,canvas,dialog,embed,figcaption,figure,footer,header,hgroup,nav,output,progress,section,video', |
| 48 | + 'new-blocklevel-tags' => 'article,aside,canvas,dialog,embed,figcaption,figure,footer,header,hgroup,nav,output,progress,section,video', |
49 | 49 | 'new-inline-tags' => 'audio,bdi,command,datagrid,datalist,details,keygen,mark,meter,rp,rt,ruby,source,summary,time,track,wbr', |
50 | | - ), |
| 50 | + ], |
51 | 51 |
|
52 | 52 | // Errors that match these regexs wont be displayed |
53 | | - 'ignored_errors' => array( |
| 53 | + 'ignored_errors' => [ |
54 | 54 | // workaround to hide errors related to HTML5 |
55 | 55 | "/line.*proprietary attribute \"data-.*\n?/", |
56 | 56 | "/line.*proprietary attribute \"placeholder.*\n?/", |
|
63 | 63 | "/line.*<script> inserting \"type\" attribute\n?/", |
64 | 64 | "/line.*<input> proprietary attribute \"autocomplete\"\n?/", |
65 | 65 | "/line.*<input> proprietary attribute \"autofocus\"\n?/", |
66 | | - ), |
67 | | - */ |
68 | | -); |
| 66 | + ], |
| 67 | + |
| 68 | +]; |
0 commit comments