getOptions($options, $cfg['DefaultTransformations']['TextLink']); $url = ($options[0] ?? '') . (isset($options[2]) && $options[2] ? '' : $buffer); /* Do not allow javascript links */ if (! Sanitize::checkLink($url, true, true)) { return htmlspecialchars($url); } return '' . htmlspecialchars($options[1] ?? $buffer) . ''; } /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */ /** * Gets the transformation name of the specific plugin * * @return string */ public static function getName() { return 'TextLink'; } }