{$description}
CARD; // If we don't have any parameter for the bridge, we print a generic form to load it. if(count($bridgeClass::PARAMETERS) == 0){ $card .= $getFormHeader($bridgeName); if($isActive){ if(defined('PROXY_URL') && PROXY_BYBRIDGE){ $idArg = 'arg-' . urlencode($bridgeName) . '-' . urlencode('proxyoff') . '-' . urlencode('_noproxy'); $card .= '' . PHP_EOL; $card .= '' . $bridgeClass::MAINTAINER . '
'; $card .= ''; return $card; } function sanitize($textToSanitize ,$removedTags=array('script','iframe','input','form') ,$keptAttributes=array('title','href','src') ,$keptText=array()){ $htmlContent = str_get_html($textToSanitize); foreach($htmlContent->find('*[!b38fd2b1fe7f4747d6b1c1254ccd055e]') as $element){ if(in_array($element->tag, $keptText)){ $element->outertext = $element->plaintext; } elseif(in_array($element->tag, $removedTags)){ $element->outertext = ''; } else { foreach($element->getAllAttributes() as $attributeName => $attribute){ if(!in_array($attributeName, $keptAttributes)) $element->removeAttribute($attributeName); } } } return $htmlContent; } function defaultImageSrcTo($content, $server){ foreach($content->find('img') as $image){ if(is_null(strpos($image->src, "http")) && is_null(strpos($image->src, "//")) && is_null(strpos($image->src, "data:"))) $image->src = $server . $image->src; } return $content; } ?>