interface
League
/
CommonMark
/
Normalizer
/
TextNormalizerInterface
You are viewing an older version of the documentation. For the latest, please visit 2.4 documentation.
TextNormalizerInterface
Methods
public
normalize ( string $text , array $context ) : void
Parameters
-
$text
string
The text to normalize
-
$context
arrayAdditional context about the text being normalized (optional) $context may include (but is not required to include) the following:
-
prefix
- A string prefix to prepend to each normalized result -
length
- The requested maximum length -
node
- The node we're normalizing text for
-