I have an existing messaging app which allows mentions and uses html to highlight mentionned user names. When I plug the messages into Gifted Chat, they look like this :
Yo <span class="editor-suggestion suggestion-user" data-original-suggestion-text="Albert Einstein" data-suggestion-type="user" data-suggestion-user-id="529628cbe4b041ef4c83ad33">Albert Einstein</span> how are you man
How can I convert this string to html so it's displayed properly ?
Have strings containing html elements in your messages
I should see:
Yo Albert Einstein how are you man
you can try to wrap message text in renderMessageText with an html render like https://github.com/jsdf/react-native-htmlview and pass it relevant styles
@nonotest are there examples for this or something?
Most helpful comment
@nonotest are there examples for this or something?