File ManagerCurrent Directory: wp-content/plugins/wpforms/vendor_prefixed/ezyang/htmlpurifier/library/HTMLPurifier/InjectorLinux appserver-7a7af3b2-php-0c9ec09e2f9746c2a80fa3756c076432 6.12.94+ #1 SMP Fri Jul 17 09:26:56 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