textarea() html()

A bare <textarea> (no form row); the value is escaped.

html()->textarea($name = '', $value = '', $extra = [])

Options

OptionMeaning
$name, $valueName and text.
id, class, rows, cols, placeholder, disabled, readonly, requiredAttributes.

Example

Code

return html()->textarea('input_name', "some value\n<b>escaped</b>", ['rows' => 3]);

See also: form/textarea