<?php
namespace XF;
use function strval;
class PreEscaped implements \JsonSerializable
{
public $value;
public $escapeType;
public function __construct($value, $escapeType = 'html')
{
$this->value = strval($value);
$this->escapeType = $escapeType;
}
public function __toString()
{
return $this->value;
}
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return $this->value;
}
}