From: Marcel Werk Date: Mon, 9 Dec 2024 16:04:24 +0000 (+0100) Subject: Add renderer for emails X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=37140581a5fb64bc30e98cd134f08492515d5c8d;p=GitHub%2FWoltLab%2FWCF.git Add renderer for emails --- diff --git a/wcfsetup/install/files/lib/system/gridView/renderer/EmailColumnRenderer.class.php b/wcfsetup/install/files/lib/system/gridView/renderer/EmailColumnRenderer.class.php new file mode 100644 index 0000000000..b258d336c7 --- /dev/null +++ b/wcfsetup/install/files/lib/system/gridView/renderer/EmailColumnRenderer.class.php @@ -0,0 +1,22 @@ + + * @since 6.2 + */ +class EmailColumnRenderer extends AbstractColumnRenderer implements ILinkColumnRenderer +{ + #[\Override] + public function render(mixed $value, mixed $context = null): string + { + return \sprintf('%s', StringUtil::encodeHTML($value), StringUtil::encodeHTML($value)); + } +}