Skip to content

Commit a3a6d85

Browse files
authored
Merge pull request #439 from AlexLoxo/master
added support for passing options to sanitizeHtml
2 parents b07a5b2 + fc8c958 commit a3a6d85

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ class ReactTooltip extends React.Component {
5858
disable: PropTypes.bool,
5959
scrollHide: PropTypes.bool,
6060
resizeHide: PropTypes.bool,
61-
wrapper: PropTypes.string
61+
wrapper: PropTypes.string,
62+
sanitizeHtmlOptions: PropTypes.any
6263
};
6364

6465
static defaultProps = {
@@ -549,7 +550,7 @@ class ReactTooltip extends React.Component {
549550
ref={ref => this.tooltipRef = ref}
550551
{...ariaProps}
551552
data-id='tooltip'
552-
dangerouslySetInnerHTML={{__html: sanitizeHtml(placeholder)}}/>
553+
dangerouslySetInnerHTML={{__html: sanitizeHtml(placeholder, this.props.sanitizeHtmlOptions)}}/>
553554
)
554555
} else {
555556
return (

0 commit comments

Comments
 (0)