當前位置: 首頁>>代碼示例>>PHP>>正文


PHP HTMLPurifier_Injector類代碼示例

本文整理匯總了PHP中HTMLPurifier_Injector的典型用法代碼示例。如果您正苦於以下問題:PHP HTMLPurifier_Injector類的具體用法?PHP HTMLPurifier_Injector怎麽用?PHP HTMLPurifier_Injector使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了HTMLPurifier_Injector類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: prepare

 public function prepare($config, $context)
 {
     $this->sanitizer = new HTMLPurifier_AttrDef_URI();
     $this->config = $config;
     $this->context = $context;
     return parent::prepare($config, $context);
 }
開發者ID:ratbird,項目名稱:hope,代碼行數:7,代碼來源:HTMLPurifier_Injector_Unlinkify.php

示例2: prepare

 public function prepare($config, $context)
 {
     $this->attrValidator = new HTMLPurifier_AttrValidator();
     $this->config = $config;
     $this->context = $context;
     return parent::prepare($config, $context);
 }
開發者ID:ConnorChristie,項目名稱:GrabViews,代碼行數:7,代碼來源:RemoveSpansWithoutAttributes.php

示例3: prepare

 public function prepare($config, $context)
 {
     parent::prepare($config, $context);
     $this->config = $config;
     $this->context = $context;
     $this->removeNbsp = $config->get('AutoFormat.RemoveEmpty.RemoveNbsp');
     $this->removeNbspExceptions = $config->get('AutoFormat.RemoveEmpty.RemoveNbsp.Exceptions');
     $this->attrValidator = new HTMLPurifier_AttrValidator();
 }
開發者ID:helpfulrobot,項目名稱:nyeholt-silverstripe-simplewiki,代碼行數:9,代碼來源:RemoveEmpty.php

示例4: prepare

 /**
  * @param HTMLPurifier_Config  $config  Configuration.
  * @param HTMLPurifier_Context $context Context.
  */
 public function prepare($config, $context)
 {
     parent::prepare($config, $context);
     $this->linkTextLength = $config->get('AutoFormat.LinkifyWithTextLengthLimit.Limit');
     $this->linkTextSuffix = $config->get('AutoFormat.LinkifyWithTextLengthLimit.Suffix');
     $this->linkTextRemoveProtocol = $config->get('AutoFormat.LinkifyWithTextLengthLimit.RemoveProtocol');
     if (!$this->linkTextLength) {
         $this->linkTextLength = null;
     }
 }
開發者ID:Viacomino,項目名稱:sutra,代碼行數:14,代碼來源:LinkifyWithTextLengthLimit.php

示例5: prepare

 /**
  * @param HTMLPurifier_Config $config
  * @param HTMLPurifier_Context $context
  * @return void
  */
 public function prepare($config, $context)
 {
     parent::prepare($config, $context);
     $this->config = $config;
     $this->context = $context;
     $this->removeNbsp = $config->get('AutoFormat.RemoveEmpty.RemoveNbsp');
     $this->removeNbspExceptions = $config->get('AutoFormat.RemoveEmpty.RemoveNbsp.Exceptions');
     $this->exclude = $config->get('AutoFormat.RemoveEmpty.Predicate');
     foreach ($this->exclude as $key => $attrs) {
         if (!is_array($attrs)) {
             // HACK, see HTMLPurifier/Printer/ConfigForm.php
             $this->exclude[$key] = explode(';', $attrs);
         }
     }
     $this->attrValidator = new HTMLPurifier_AttrValidator();
 }
開發者ID:spacequad,項目名稱:glfusion,代碼行數:21,代碼來源:RemoveEmpty.php

示例6: prepare

 /**
  * @param HTMLPurifier_Config $config
  * @param HTMLPurifier_Context $context
  * @return void
  */
 public function prepare($config, $context)
 {
     parent::prepare($config, $context);
 }
開發者ID:sintoris,項目名稱:Known,代碼行數:9,代碼來源:SafeObject.php

示例7: prepare

 public function prepare($config, $context)
 {
     $this->docURL = $config->get('AutoFormat.PurifierLinkify.DocURL');
     return parent::prepare($config, $context);
 }
開發者ID:datadigicore,項目名稱:siprisdik,代碼行數:5,代碼來源:PurifierLinkify.php

示例8: prepare

 function prepare($config, &$context)
 {
     $this->docURL = $config->get('AutoFormatParam', 'PurifierLinkifyDocURL');
     return parent::prepare($config, $context);
 }
開發者ID:NaszvadiG,項目名稱:activecollab_loc,代碼行數:5,代碼來源:PurifierLinkify.php


注:本文中的HTMLPurifier_Injector類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。