Convert a string containing markup or entities to be a single line of plain text
This is the same as the [$sanitizer->markupToText()
](/api/ref/sanitizer/markup-to-$sanitizer->markupToText()
/) method except that the return value is always just a single line.
Usage
// basic usage
$string = $sanitizer->markupToLine(string $value);
// usage with all arguments
$string = $sanitizer->markupToLine(string $value, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
value | string | Value to convert |
options (optional) | array | Options to modify default behavior:
|
Return value
string
Converted string of text on a single line
$sanitizer methods and properties
API reference based on ProcessWire core version 3.0.236