flutter-quill
flutter-quill copied to clipboard
[Quill_Html_Converter] - Converting from delta to HTML incorrectly converts HTML codes into their corresponding characters.
Is there an existing issue for this?
- [X] I have searched the existing issues
Flutter Quill version
No response
Steps to reproduce
- Create a flutter quill editor instance
- In the document, type in any HTML character code, for example
1. - Use the controller of the document to extract the delta
delta = controller.document.toDelta() - Convert the delta to HTML -
delta.toHtml()
Expected results
You should keep the characters as the user input them into the document, e.g. toHtml should output 1
Actual results
It will output the corresponding character, in this case 1
Code sample
Code sample
var text = quillController.document.toDelta().toHtml();
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
The support for HTML is experimental and we already marked it with @experimental and it's not meant for production use, we expose it because we need it internally for pasting content from websites