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