• File: html.php
  • Full Path: /home/dealkatnwc/www/modules/login-security/classes/model/text/html.php
  • Date Modified: 05/16/2026 1:43 PM
  • File size: 493 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace WordfenceLS\Text;

/**
 * Represents text that is already HTML-safe and should not be encoded again.
 * @package Wordfence2FA\Text
 */
class Model_HTML {
	private $_html;
	
	public static function esc_html($content) {
		if (is_object($content) && ($content instanceof Model_HTML)) {
			return (string) $content;
		}
		return esc_html($content);
	}
	
	public function __construct($html) {
		$this->_html = $html;
	}
	
	public function __toString() {
		return $this->_html;
	}
}