Fixed 'img' tags, removed utf8_encode since it's deprecated and readded echoRaw from textarea widget

This commit is contained in:
Dave Mc Nicoll committed 2023-04-13 15:51:29 -04:00
1 parent ea780c697e
commit fd4e30bd42
3 files changed
+12 -4

No files matched your search

+7 -1
View File
@@ -25,9 +25,15 @@ class UiTextarea extends UiInput {
return "<?php echo ( new \\" . static::class . "(raw: $raw) )->buildHtml($arguments) ?>";
}
protected function setValue($value) : void
{
$this->echoRaw ? $this->html($value) : $this->text($value);
}
protected function echoRaw(bool $value) : self
{
$this->echoRaw = $value;
return $this;
}
}