File ManagerCurrent Directory: wp-content/plugins/wpforms/vendor_prefixed/ezyang/htmlpurifier/library/HTMLPurifier/InjectorLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: DisplayLinkURI.php <?php namespace WPForms\Vendor; /** * Injector that displays the URL of an anchor instead of linking to it, in addition to showing the text of the link. */ class HTMLPurifier_Injector_DisplayLinkURI extends HTMLPurifier_Injector { /** * @type string */ public $name = 'DisplayLinkURI'; /** * @type array */ public $needed = array('a'); /** * @param $token */ public function handleElement(&$token) { } /** * @param HTMLPurifier_Token $token */ public function handleEnd(&$token) { if (isset($token->start->attr['href'])) { $url = $token->start->attr['href']; unset($token->start->attr['href']); $token = array($token, new HTMLPurifier_Token_Text(" ({$url})")); } else { // nothing to display } } } // vim: et sw=4 sts=4 Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)DirAutoParagraph.phpFile13.46 KB Rename | Delete | EditDisplayLinkURI.phpFile884.00 B Rename | Delete | EditLinkify.phpFile2.05 KB Rename | Delete | EditPurifierLinkify.phpFile1.74 KB Rename | Delete | EditRemoveEmpty.phpFile3.54 KB Rename | Delete | EditRemoveSpansWithoutAttributes.phpFile2.24 KB Rename | Delete | EditSafeObject.phpFile3.71 KB Rename | Delete | Edit