Skip to content
PHP Ecosystem
Explore

Wrap

API reference › HTML › Form › Values › Wrap

enumUIAwesome\Html\Form\Values\Wrap
Backed bystring
Sourcesrc/Form/Values/Wrap.php

Represents values for the HTML wrap attribute.

See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/textarea#wrap.

CaseValueDescription
HARD'hard'Represents the hard token. The browser automatically inserts line breaks (CR+LF) so no line exceeds the width of the control. The cols attribute must be specified.
OFF'off'Represents the off token. Like soft, but changes appearance to white-space: pre so line segments exceeding cols are not wrapped. Non-standard.
SOFT'soft'Represents the soft token. The browser ensures all line breaks in the value are CR+LF pairs, but no additional line breaks are added. This is the default.