Skip to content

Add support for dangerouslySetInnerHTML #2

@nupurkapoor

Description

@nupurkapoor

Currently the component only accepts text in string form, though sometimes the data is raw HTML which errors when passed. I get this error:

Warning: Failed prop type: Invalid prop `text` of type `object` supplied to `ReactTextMoreLess`, expected `string`.
    in ReactTextMoreLess

The PropTypes for text should be object so we can pass HTML data as well

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions