Simple URL Encode Function for Less
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
urlencode.less.js

README.md

less-plugin-urlencode

Simple URL Encode Function for Less

Installation

Put the urlencode.less.js file in your project and include the following in your Less file:

@plugin 'path/to/urlencode.less.js';

Then you can use the urlencode() function anywhere.

Use

urlencode() accepts a string which it will return, unquoted and URL encoded (using JavaScript's encodeURIComponent()).