Skip to content

Commit

Permalink
fix(paginator_helper): disable html escape
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Sep 20, 2019
1 parent fffafac commit 38f0690
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/plugins/helper/paginator.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ const createPageTag = (options, ctx) => {

return i => {
if (i === current) {
return htmlTag('span', { class: 'page-number current' }, transform ? transform(i) : i);
return htmlTag('span', { class: 'page-number current' }, transform ? transform(i) : i, false);
}
return htmlTag('a', { class: 'page-number', href: link(i) }, transform ? transform(i) : i);
return htmlTag('a', { class: 'page-number', href: link(i) }, transform ? transform(i) : i, false);
};
};

Expand Down Expand Up @@ -116,7 +116,7 @@ function paginatorHelper(options = {}) {

// Display the link to the previous page
if (prevNext && current > 1) {
tags.push(htmlTag('a', { class: 'extend prev', rel: 'prev', href: link(current - 1)}, prevText));
tags.push(htmlTag('a', { class: 'extend prev', rel: 'prev', href: link(current - 1)}, prevText, false));
}

if (options.show_all) {
Expand All @@ -127,7 +127,7 @@ function paginatorHelper(options = {}) {

// Display the link to the next page
if (prevNext && current < total) {
tags.push(htmlTag('a', { class: 'extend next', rel: 'next', href: link(current + 1) }, nextText));
tags.push(htmlTag('a', { class: 'extend next', rel: 'next', href: link(current + 1) }, nextText, false));
}

return tags.join('');
Expand Down

0 comments on commit 38f0690

Please sign in to comment.