![]() | tidy::__constructDescriptiontidy tidy::__construct ( [string filename [, mixed config [, string encoding [, bool use_include_path]]]] )tidy::__construct() constructs a new tidy object. If the filename parameter is given, this function will also read that file and initialize the object with the file, acting like tidy_parse_file(). Il parametro config può essere passato sia come matrice sia come stringa. Se lo si passa come stringa, questo indica il nome del file di configurazione; nel primo caso viene interpretato come impostazione di opzioni. Guardare http://tidy.sourceforge.net/docs/quickref.html per maggiori dettagli su ogni singola opzione. Il parametro encoding imposta la codifica dei caratteri per le operazioni di input ed output. I possibili valori sono: ascii, latin1, raw, utf8, iso2022, mac, win1252, utf16le, utf16be, utf16, big5 and shiftjis.
See also tidy_parse_file() and tidy_parse_string(). | ![]() |