devzonetech / react-show-more-text

Convenience wrapper around react-truncate

Home Page:https://github.com/One-com/react-truncate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting a dangerouslySetInnerHTML attribute on the ShowMoreText component, it stops working correctly

hane-smitter opened this issue · comments

wanting to render html on page, so setting th attribute "dangerouslySetInnerHTML", but doing this breaks the functionality

yes , facing the same issue

are you getting the error children.split is not a function?

@meetbryce I'm getting children.split is not a function when I set keepNewLines to true and pass ReactNode as children instead of string

Yup, I'm getting the exact same error