Created
February 3, 2018 14:19
-
-
Save izhangzhihao/cff99d06a92d5bb3ca19c45fd09d27f1 to your computer and use it in GitHub Desktop.
Url decode in jekyll
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# _plugins/url_decode.rb | |
require 'liquid' | |
require 'uri' | |
module URLDecode | |
def url_decode(url) | |
return URI.decode(url) | |
end | |
end | |
Liquid::Template.register_filter(URLDecode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment