Parse a UTF-8 encoded string
Mike Hanna <[email protected]> Sun, 29 Jul 2007 22:37:55 -0700
| Newsgroups | gmane.comp.web.html-tidy.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I added tidy to my XCode(Mac OS X) project. It compiles without error. I'd like to pass tidy a UTF-8 encoded C-string of HTML and get back the tidied HTML in the same encoding. How do I do this? I see the interface: /** Parse markup in given string */ TIDY_EXPORT int TIDY_CALL tidyParseString( TidyDoc tdoc, ctmbstr content ); but I'm not sure what a TidyDoc nor a ctmbstr is. I assume TidyDoc is my output. Do I have to allocate storage for a TidyDoc? How do I know ahead of time how much to allocate? is content where I pass in a char* ? Bit confused here ... Michael ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Tidy-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tidy-develop