/less-plugin-urlencode

Simple URL Encode Function for Less

Primary LanguageJavaScript

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()).