Fixed BZ#1069085 - Docbuilder builds invalid XML content without any error messages.
Fixed part of BZ#1014451 - RFE: better formatting for XML validity errors. XML errors will now be broken up better so that the text will wrap.
Minor fix so that bug/editor links aren't injected when the XML is invalid.
Fixed an issue with simplesect elements and bug links.