- Removed sprintf which was causing problems with it's own escaping mechanism while using it in a view

This commit is contained in:
mcndave committed 2022-11-29 19:48:17 +00:00
1 parent 164a27d267
commit 3a930c13b1
2 files changed
+7 -2

No files matched your search

+3 -1
View File
@@ -22,7 +22,9 @@ class UiTextarea extends UiInput {
$this->echoRaw = true;
}
return sprintf("<?php echo ( new \\" . static::class . "() )->echoRaw(%s)->buildHtml($arguments) ?>", $this->echoRaw ? 'true' : 'false');
$raw = $this->echoRaw ? 'true' : 'false';
return "<?php echo ( new \\" . static::class . "() )->echoRaw($raw)->buildHtml($arguments) ?>";
}