Skip to content

Adding highlights in HTML strings #30

Description

@shashtag

Is your feature request related to a problem? Please describe.
We have HTML string coming from the backend and we need to add highlighting feature on it.

Describe the solution you'd like
An api to add the highlighting to HTML strings.

Describe alternatives you've considered
We have tried parsing the HTML string to React (by multiple ways - create root, react-html-parser, html-react-parser, etc) and adding the tags dynamically..

We have also added the html directly to the dom by dangerouslySetInnerHTML.

We have tried all the solutions mentioned in this stack overflow link https://stackoverflow.com/questions/36104302/how-do-i-convert-a-string-to-jsx

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions