DOMDocument.loadHTML uses ISO-8859-1 by default.
Workaround is to convert from UTF-8 to HTML-ENTITIES and call DOMDocument.saveHTML for the documentElement.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* better OOP architecture
* dependency injection everywhere
* abstraction where it made sense
* SRP applied as much as possible
* added a bunch of tests for the new code
* REST API compatible to old implementation
* new code is not optimized
* old code was not removed
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>