url_encode

Encodes a string into a valid format for URLs

[%url_encode%]http://www.neto.com.au/assets/theme/css/style.css[%/url_encode%]

Usage

The url_encode tag will encode the content within the tag to convert ASCII characters into a URL safe format.

The sample above would output the following:

http%3A%2F%2Fwww.neto.com.au%2Fassets%2Ftheme%2Fcss%2Fstyle.css

For a list of encoded characters, check out the ASCII Encoding Reference. See the From UTF-8 column for the coded character.

Was this article useful?

Be notified when this page is updated. Optional.