HEX
Server: LiteSpeed
System: Linux server490.bertina.biz 5.14.0-687.31.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Aug 1 05:38:01 EDT 2026 x86_64
User: parskavirpaya (1252)
PHP: 8.1.34
Disabled: mail, show_source, system, shell_exec, passthru, exec, popen
Upload Files
File: /home/parskavirpaya/public_html/wp-content/plugins/wp-parsidate/inc/Helper/Strip.php
<?php

namespace WPParsidate\Helper;

class Strip {
  /**
   * Filters text content and strips out disallowed HTML.
   *
   * @param string $content Text content to filter.
   *
   * @return string Filtered content containing only the allowed HTML.
   */
  public static function kses( string $content ): string {
    return wp_kses( stripslashes_deep( $content ), wp_kses_allowed_html( 'post' ) );
  }

  /**
   * Remove HTML comments
   *
   * @param string $html
   *
   * @return string
   */
  public static function removeHtmlComments( string $html ): string {
    return preg_replace( '~<!--(.*?)-->~s', '', $html );
  }

  /**
   * Remove HTML Document type
   *
   * @param string $html
   *
   * @return string
   */
  public static function removeHtmlDoctype( string $html ): string {
    return preg_replace( '/^<!DOCTYPE.+?>/', '', $html );
  }
}