. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Elements; use Fisharebest\Webtrees\Tree; use function e; /** * ADDRESS_EMAIL := {Size=5:120} * An electronic address that can be used for contact such as an email address. */ class AddressEmail extends AbstractElement { protected const MAX_LENGTH = 120; /** * Display the value of this type of element. * * @param string $value * @param Tree $tree * * @return string */ public function value(string $value, Tree $tree): string { $canonical = $this->canonical($value); return '' . e($canonical) . ''; } }