We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b07a5b2 + fc8c958 commit a3a6d85Copy full SHA for a3a6d85
src/index.js
@@ -58,7 +58,8 @@ class ReactTooltip extends React.Component {
58
disable: PropTypes.bool,
59
scrollHide: PropTypes.bool,
60
resizeHide: PropTypes.bool,
61
- wrapper: PropTypes.string
+ wrapper: PropTypes.string,
62
+ sanitizeHtmlOptions: PropTypes.any
63
};
64
65
static defaultProps = {
@@ -549,7 +550,7 @@ class ReactTooltip extends React.Component {
549
550
ref={ref => this.tooltipRef = ref}
551
{...ariaProps}
552
data-id='tooltip'
- dangerouslySetInnerHTML={{__html: sanitizeHtml(placeholder)}}/>
553
+ dangerouslySetInnerHTML={{__html: sanitizeHtml(placeholder, this.props.sanitizeHtmlOptions)}}/>
554
)
555
} else {
556
return (
0 commit comments