18 Commits

Author SHA1 Message Date
Jonathan Ingram 93312f47fc v2: initial commit (#153)
- Some methods have been changed to return an error as their last
  argument
- Log calls inside various functions have been removed
- Use a v1 tag if you need the previous signature
2023-10-31 11:32:40 +11:00
Jonathan Ingram dcf48c42ca html: add passthru version that works with appengine 2017-08-26 13:50:52 +10:00
Jonathan Ingram f51d8e1c87 Fix typo 2017-08-26 13:50:29 +10:00
David Howden 3dad0cb02c fix golint issues
Documentation still needs a lot of work.
2017-06-26 12:16:32 +10:00
David Howden 94a2d4dc93 Refactor code into library.
Binary now built from subpackage docconv.
2015-08-10 23:17:50 +10:00
David Howden b0730a51bb Return errors from ConvertHTML. 2015-08-10 09:48:20 +10:00
David Howden 5dca922378 Update XMLToText to return errors, and refactor ConvertXML. 2015-08-10 09:48:20 +10:00
David Howden baf70d59c1 Small refactoring to HTML converter. 2015-08-09 23:53:20 +10:00
David Howden d32e17d92a More refactoring and tidying. 2015-08-09 17:50:53 +10:00
David Howden a5dd08375c Refactor method names to better follow standard Go conventions. 2015-08-09 16:15:43 +10:00
David Howden 995a15d510 Fix code.google.com/p/go.net import to use golang.org/x/net instead. 2015-08-09 14:45:53 +10:00
David Howden a03b7c80a7 Reorder imports. 2015-08-09 14:44:37 +10:00
David Howden 5dcc89443d Remove unnecessary bytes.NewReader. 2015-08-09 14:44:29 +10:00
Hamish 0e66dfc523 go fmt (overdue!) 2015-01-31 13:34:36 +11:00
Hamish 8c9f308bd9 Added "section" to the HTML elements allowed when tokenizing 2014-02-11 13:22:47 +11:00
Hamish 8bf0eec2bc Add manual Golang tokenization to take over HTML cleaning when Tidy fails
Tidy often chokes on common HTML tokens. If tidy fails, the HTML is now
parsed using Golang instead. It's not perfect, but better than getting
zero content from the HTML file.
2014-02-06 19:21:30 +11:00
Owen Prime 0ecadaf20d Issue sajari/sjengine-v9#185. Added readability to HTML conversion 2014-02-03 22:31:47 +11:00
Hamish ec8de20751 Initial code commit. Works for all document types 2013-11-01 15:31:50 +11:00