当前位置: 首页>>代码示例>>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;未经允许,请勿转载。