Include HTMLpurifier with Zend_Loader

前端 未结 4 2102
醉梦人生
醉梦人生 2021-02-06 17:58

I want to use the HTMLpurifier in combination with the Zend Framework. I would love to load the Class and its files with the Zend_Loader. How would you include it? Would you jus

4条回答
  •  我在风中等你
    2021-02-06 18:23

    I've put the contents of library of the archive of HTMLPurifier in my library path. So I have this directory structure :

    library/
      HTMLPurifier\
      HTMLPurifier.auto.php
      ...
      HTMLPurifier.safe-includes.php
    

    And then I put this on top of the file where I'm using the HTMLPurifier :

    require_once 'HTMLPurifier.safe-includes.php';
    

    Ugly, but it's working.

提交回复
热议问题