extension_loaded('tidy'), // Process AJAX requests 'ajax' => false, // Encoding of your original documents. This refers to the encoding that you original documents have, // not the enconding that will be used for the output. 'encoding' => 'utf8', // Possible values: ascii, latin0, latin1, raw, utf8, iso2022, mac, win1252, ibm858, utf16, utf16le, utf16be, big5, and shiftjis. // Doctype used for the output 'doctype' => '', // Append errors to output 'display_errors' => false, // Errors container opening tag 'container_open_tag' => '
[x]', // Errors container closing tag 'container_close_tag' => '
', // Options passed to HTML Tidy parseString() function. Docs: http://tidy.sourceforge.net/docs/quickref.html 'tidy_options' => [ 'output-xhtml' => false, 'char-encoding' => 'utf8', 'wrap' => 0, 'wrap-sections' => false, 'indent' => 2, // 2 is equivalent to 'auto', which seems to be ignored by PHP-html-tidy extension 'indent-spaces' => 4, // HTML5 workarounds 'doctype' => 'omit', //The filter will add the configured doctype later 'new-blocklevel-tags' => 'article,aside,canvas,dialog,embed,figcaption,figure,footer,header,hgroup,nav,output,progress,section,video', 'new-inline-tags' => 'audio,bdi,command,datagrid,datalist,details,keygen,mark,meter,rp,rt,ruby,source,summary,time,track,wbr', ], // Errors that match these regexs wont be displayed 'ignored_errors' => [ // workaround to hide errors related to HTML5 "/line.* proprietary attribute \"class\"\n?/", "/line.* proprietary attribute \"autocomplete\"\n?/", "/line.* proprietary attribute \"autofocus\"\n?/", "/line.* lacks \"content\" attribute\n?/", "/line.* proprietary attribute \"charset\"\n?/", "/line.*