2 namespace TYPO3\CMS\Fluid\ViewHelpers\Link;
53 $this->
registerTagAttribute(
'rel',
'string',
'Specifies the relationship between the current document and the linked document');
54 $this->
registerTagAttribute(
'rev',
'string',
'Specifies the relationship between the linked document and the current document');
64 if (TYPO3_MODE ===
'FE') {
65 list($linkHref, $linkText) =
$GLOBALS[
'TSFE']->cObj->getMailTo($email, $email);
67 $linkHref =
'mailto:' . $email;
71 if ($tagContent !== null) {
72 $linkText = $tagContent;
74 $this->tag->setContent($linkText);
75 $escapeSpecialCharacters = !isset(
$GLOBALS[
'TSFE']->spamProtectEmailAddresses) ||
$GLOBALS[
'TSFE']->spamProtectEmailAddresses !==
'ascii';
76 $this->tag->addAttribute(
'href', $linkHref, $escapeSpecialCharacters);
77 $this->tag->forceClosingTag(
true);
78 return $this->tag->render();