Skip to content

Commit 4147358

Browse files
author
vvo
committed
fix: allow html in pagination labels
fixes #36
1 parent 60052fc commit 4147358

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

components/Pagination/PaginationLink/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ class PaginationLink extends React.Component {
1010

1111
return (
1212
<li className={className}>
13-
<a href={href} aria-label={ariaLabel} onClick={this.click.bind(this, page)}>
14-
{label}
13+
<a
14+
href={href}
15+
aria-label={ariaLabel}
16+
onClick={this.click.bind(this, page)}
17+
dangerouslySetInnerHTML={{__html: label}}>
1518
</a>
1619
</li>
1720
);

0 commit comments

Comments
 (0)