<?php

declare(strict_types=1);

namespace App\Framework\View;

/**
 * Wrapper für HTML-Inhalte, die nicht escaped werden sollen
 */
final readonly class RawHtml
{
    public function __construct(
        public string $content
    ) {
    }

    public function __toString(): string
    {
        return $this->content;
    }

    public static function from(string $content): self
    {
        return new self($content);
    }
}
