Chuyển đến nội dung
Tài liệu

Tra cứu lớp và hàm

HTMLFilter

Danh sách các phương thức công khai của lớp Zittme\Framework\Filters\HTMLFilter. Tài liệu này được tạo tự động từ mã nguồn lõi Zittme.

Nguồn: common/framework/filters/HTMLFilter.php

Phương thức công khai

  • static function prependPreFilter(callable $callback)
  • Prepend a pre-processing filter.
  • static function appendPreFilter(callable $callback)
  • Append a pre-processing filter.
  • static function prependPostFilter(callable $callback)
  • Prepend a post-processing filter.
  • static function appendPostFilter(callable $callback)
  • Append a post-processing filter.
  • static function clean(string $input, $allow_classes = false, bool $allow_editor_components = true, bool $allow_widgets = false)
  • Filter HTML content to block XSS attacks.
  • static function fixRelativeUrls(string $content)
  • Convert relative URLs to absolute URLs in HTML content.
  • static function getHTMLPurifier(?array $allowed_classes = null)
  • Get an instance of HTMLPurifier.