How can I extract Quill plain HTML WITHOUT any class="ql-xxx" information?
See original GitHub issueHi there, I’m quite happy with Quill - but getting to the final stage of implementation, I realised, that saving Quill’s Editor HTML contains Quill-specific classes, such as…
current result
-
For
code
blocks *:<pre class="ql-syntax" spellcheck="false"><span class="hljs-attribute">code</span></pre>
-
For
size
paragraphs:<span class="ql-size-huge">This is not a h1 but a huge title</span>
* does Quill follow highlight.js’ recommended implementation with that syntax for code-blocks it is using at the moment?
expected result
-
For
code
blocks:<pre spellcheck="false"><code>code</code></pre>
- => no
class="ql-syntax"
&<span class="hljs-attribute">
- => no
-
For
size
paragraphs:<span style="24px">This is not a h1 but a huge title</span>
- => no
class="ql-size-huge"
- => no
I mean, I can simply disable Nr. 2 the custom sizes… But for the Code Syntaxing, I would miss that.
The challenge here is, that I’ll pass the HTML to store the text in our DB. And honestly, those class
-information make the HTML messy…
Is there any oob solution for this?
P.s.: using Quill.js v1.3.4
Issue Analytics
- State:
- Created 6 years ago
- Reactions:13
- Comments:13 (3 by maintainers)
This is in my case a complete showstopper for quill, because i want to use the content for emails. I definitely need inline styles and no classes.
What good is a text editor if you can’t use the content in your page? You need to be able to export HTML.