PHPMailer\PHPMailer

Exception::errorMessage()publicWP 1.0

Prettify error message output.

{} It's a method of the class: Exception{}

No Hooks.

Return

String.

Usage

$Exception = new Exception();
$Exception->errorMessage();

Code of Exception::errorMessage() WP 6.0

public function errorMessage()
{
    return '<strong>' . htmlspecialchars($this->getMessage(), ENT_COMPAT | ENT_HTML401) . "</strong><br />\n";
}