From: Antonio Ospite <ospite@studenti.unina.it>
Date: Fri, 8 Nov 2013 09:44:44 +0000 (+0100)
Subject: Handle errors and warnings from loadHTML()
X-Git-Tag: v0.1~8
X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/07a6e0c19e175603bde51f800b0b484a327c515c?ds=sidebyside;hp=07a6e0c19e175603bde51f800b0b484a327c515c

Handle errors and warnings from loadHTML()

When parsing invalid documents loadHTML() spits out warnings and errors
which may end up polluting the output of tweeper depending on the value
of the "display_errors" variable in the PHP configuration; this may
result in the output being invalid RSS.

Handling those messages explicitly makes tweeper more robust against
different PHP configurations.

Thanks-to: gregor herrmann <gregoa@debian.org>
---