HtmlPurifier.php 835 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2008 Yii Software LLC
  4. * @link http://www.yiiframework.com/
  5. * @license http://www.yiiframework.com/license/
  6. */
  7. namespace yii\helpers;
  8. /**
  9. * HtmlPurifier provides an ability to clean up HTML from any harmful code.
  10. *
  11. * Basic usage is the following:
  12. *
  13. * ```php
  14. * echo HtmlPurifier::process($html);
  15. * ```
  16. *
  17. * If you want to configure it:
  18. *
  19. * ```php
  20. * echo HtmlPurifier::process($html, [
  21. * 'Attr.EnableID' => true,
  22. * ]);
  23. * ```
  24. *
  25. * For more details please refer to HTMLPurifier documentation](http://htmlpurifier.org/).
  26. *
  27. * Note that you should add `ezyang/htmlpurifier` to your composer.json `require` section and run `composer install`
  28. * before using it.
  29. *
  30. * @author Alexander Makarov <[email protected]>
  31. * @since 2.0
  32. */
  33. class HtmlPurifier extends BaseHtmlPurifier
  34. {
  35. }