web-base/core/Elements/Style.class.php

18 lines
297 B
PHP

<?php
namespace Elements;
class Style extends StaticView {
private string $style;
function __construct($style) {
$this->style = $style;
}
function getCode(): string {
// TODO: do we need to escape the content here?
return html_tag("style", [], $this->style, false);
}
}