diff --git a/scripts/helpers/next-url.js b/scripts/helpers/next-url.js index d7e672b5f9..5b8f8f0fe9 100644 --- a/scripts/helpers/next-url.js +++ b/scripts/helpers/next-url.js @@ -27,6 +27,7 @@ hexo.extend.helper.register('next_url', function(path, text, options = {}) { } for (let key in options) { + /** * If option have `class` attribute, add it to * 'exturl' class if `exturl` option enabled. @@ -56,5 +57,5 @@ hexo.extend.helper.register('next_url', function(path, text, options = {}) { } } - return htmlTag(tag, attrs, text, false); + return htmlTag(tag, attrs, decodeURI(text), false); });