Attention

TYPO3 v9 has reached its end-of-life September 30th, 2021 and is not maintained by the community anymore. Looking for a stable version? Use the version switch on the top left.

You can order Extended Long Term Support (ELTS) here: TYPO3 ELTS.

format.urlencode

Encodes the given string according to RFC 3986. Applying PHPs rawurlencode() function. See https://www.php.net/manual/function.rawurlencode.php.

Note

The output is not escaped. You may have to ensure proper escaping on your own.

Examples

Default notation

``foo%20%40%2B%25%2F`` :php:`rawurlencode()` applied.

Inline notation

{text -> f:format.urlencode()}

Url encoded text rawurlencode() applied.

Arguments

value

DataType

string

Required

false

Description

String to format