Installer errors are double escaped. This issue is for handling the database settings form errors. Check screenshots:
Use SafeMarkup function to correct escape error messages. And be sure that messages strings are safe using isSafe function. If they are not safe, then make them safe using checkPlain function.