This page last changed on Oct 18, 2011 by jed.wheeler@involver.com.

Overview

URL encodes the passed string. Useful for passing variables to a query string.


Attributes

This filter does not have any attributes.


Examples

Google Maps

Constructs a link to Google Maps for the given address:

{% assign address = "611 Mission St, San Francisco, CA 94105" %}
<a href="http://maps.google.com/maps?q={{ address | url_encode }}" id="gmaps">My Address On Google Maps</a>

Twitter Link

Constructs a link to Twitter with the tweet field pre-populated:

{% assign tweet_content = "Hello World" %}
<a href="http://twitter.com/home?status={{ tweet_content | url_encode }}">Tweet Me!</a>

FAQ

This filter does not have any FAQs


Related Topics

Document generated by Confluence on Feb 12, 2013 09:09