tidy_parse_string Parse a document stored in a string &reftitle.description; Procedural style: tidytidy_parse_string stringinput mixedconfig stringencoding Object oriented style: booltidy->parseString stringinput mixedconfig stringencoding Parses a document stored in a string. &reftitle.parameters; input The data to be parsed. config The config config can be passed either as an array or as a string. If a string is passed, it is interpreted as the name of the configuration file, otherwise, it is interpreted as the options themselves. For an explanation about each option, visit &url.tidy.conf;. encoding The encoding parameter sets the encoding for input/output documents. The possible values for encoding are: ascii, latin0, latin1, raw, utf8, iso2022, mac, win1252, ibm858, utf16, utf16le, utf16be, big5, and shiftjis. &reftitle.returnvalues; Returns a new tidy instance. &reftitle.examples; <function>tidy_parse_string</function> example test

error
another line TRUE, 'output-xhtml' => TRUE, 'wrap' => 200); $tidy = tidy_parse_string($buffer, $config, 'UTF8'); $tidy->cleanRepair(); echo $tidy; ?> ]]> &example.outputs; test

error
another line

]]>
&reftitle.notes; ¬e.tidy.2only; &reftitle.seealso; tidy_parse_file tidy_repair_file tidy_repair_string