be resilient against malformed html