Ensure we pass a string to htmlspecialchars()
PHP 8.1 deprecated passing null into many functions. This fixes these errors:
Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of
type string is deprecated in /usr/share/awl/inc/classEditor.php on line 626
Edited by Andrew Ruthven