Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RichText did not show as richtext but plaintext #48

Open
Happy-ArthurYang opened this issue Nov 18, 2022 · 3 comments
Open

RichText did not show as richtext but plaintext #48

Happy-ArthurYang opened this issue Nov 18, 2022 · 3 comments

Comments

@Happy-ArthurYang
Copy link

I am useing react-show-more-text/v/1.5.2 now, in our project we use it to show RichText but when in expand mode it shows correcty, howevery in collopsed mode the content showed as plaintext.
chromecollapsed
chrome_expanded

@sarevok89
Copy link

Hey @Happy-ArthurYang, I'm currently struggling with the same issue. Have you managed to solve it?

@Happy-ArthurYang
Copy link
Author

try this <div dangerouslySetInnerHTML={{__html: text}}>

@Happy-ArthurYang
Copy link
Author

And a better way is use an opensource RichText editor readonly mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants