base64_ url_ safe_ encode
string | base64_url_safe_encode
returns string
Encodes a string to URL-safe Base64 format.
To produce URL-safe Base64, this filter uses - and _ in place of + and /.
{{ 'one two three' | base64_url_safe_encode }}
Code
{{ 'one two three' | base64_url_safe_encode }}Output
b25lIHR3byB0aHJlZQ==
Output
b25lIHR3byB0aHJlZQ==Was this page helpful?