-
Notifications
You must be signed in to change notification settings - Fork 37
Add parameter in getHtml function to remove css classes #200
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
Comments
Hmm, this shouldn't be happening. The default getHtml should be stripping all that stuff out, with options that let you keep it in if it's useful. |
Oh, I see, no, by default getHtml strips out things like style elements, etc, but it leaves in the attributes for all HTML elements if they exist. For example, for an image it might look like: So, to summarize what I would do here: Change the default getHtml behavior to strip all attributes from P and H1-H6. By way of detail, this would be part of the "clean" option in MU.getHTML, which is true by default, so for debugging or other purposes, they could be left in place:
|
This issue (at least as I've interpreted it above to mean stripping attributes from P and H1-H6, should be fixed in #218. |
Discussed in #199
Originally posted by thomasmfinalcad March 27, 2024
Hello @stevengharris,
I think it could be a good id to add a parameter into
getHtml
function to removeextra
elements in html and only return html balises with content.Morehover, when I try to convert the result into NSAttributedString and break line is added.
Actual
Expected
The text was updated successfully, but these errors were encountered: