Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

HtmlPurifier.php 696B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * @link http://www.yiiframework.com/
  4. * @copyright Copyright (c) 2008 Yii Software LLC
  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. * @author Alexander Makarov <sam@rmcreative.ru>
  28. * @since 2.0
  29. */
  30. class HtmlPurifier extends BaseHtmlPurifier
  31. {
  32. }