- $owner = ((x($_POST, 'owner')) ? notags(trim($_POST['owner'])) : '');
- $ownerprofile = ((x($_POST, 'ownerprofile')) ? notags(trim($_POST['ownerprofile'])) : '');
- $postal = ((x($_POST, 'postal')) ? (trim($_POST['postal'])) : '');
- $notes = ((x($_POST, 'notes')) ? (trim($_POST['notes'])) : '');
- $email = ((x($_POST, 'email')) ? notags(trim($_POST['email'])) : '');
- $footer_text = ((x($_POST, 'footer_text')) ? (trim($_POST['footer_text'])) : '');
+ $owner = (!empty($_POST['owner']) ? Strings::escapeTags(trim($_POST['owner'])) : '');
+ $ownerprofile = (!empty($_POST['ownerprofile']) ? Strings::escapeTags(trim($_POST['ownerprofile'])) : '');
+ $postal = (!empty($_POST['postal']) ? (trim($_POST['postal'])) : '');
+ $notes = (!empty($_POST['notes']) ? (trim($_POST['notes'])) : '');
+ $email = (!empty($_POST['email']) ? Strings::escapeTags(trim($_POST['email'])) : '');
+ $footer_text = (!empty($_POST['footer_text']) ? (trim($_POST['footer_text'])) : '');