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

[FR?] adding support to HTML input #820

Closed
mkikets99 opened this issue Mar 13, 2021 · 4 comments
Closed

[FR?] adding support to HTML input #820

mkikets99 opened this issue Mar 13, 2021 · 4 comments

Comments

@mkikets99
Copy link

mkikets99 commented Mar 13, 2021

I think than it can be hard to actually implement this...
Is there any option to insert html formatted string to document without getting tags (DOM-elements) as text, but as styles?

For example:

<p>Test Question</p>

must be rendered as normal Test Question thing

or

<p><strong>Test&nbsp;</strong><u>Question&nbsp;</u><em>crear&nbsp;</em><em><u><strong>test</strong></u></em></p>

must be rendered as
Test Question crear test

[Edit 1]: btw FR here means Feature Request

@dolanmiu
Copy link
Owner

Sorry this is not possible with this library unfortunately and out of scope

There is already a library out there which does this:

https://github.com/nitin42/redocx

@mkikets99
Copy link
Author

The problem with redocx is that it's can't be rendered in Browser, while this can. And there is even an issue about this.
Can you provide me some examples of rendering redocx in Browser?

@dolanmiu
Copy link
Owner

redocx is React right? And React works in the browser?

Sorry I am not familiar with redocx to help

@mkikets99
Copy link
Author

redocx is React right? And React works in the browser?

yes, but redocx use separate render method which blocks the stock React render method... in this issue everything is showed. this problem persist until 2017 :(
Here you have Packer which works even in browser variant with React, but i can't insert html inside of this document

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