-
Notifications
You must be signed in to change notification settings - Fork 29
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
Not preserving XHTML #22
Comments
No, not currently. It would require significant changes to the codebase. |
@jonkemp Could you point out roughly what would have to change to prevent this library from invalidates our XML so we can come up with a pull request? |
@yn5 well, this plugin doesn't actually handle transforming the output. It goes through another module called inline-css. https://github.com/jonkemp/inline-css inline-css uses cheerio to do the html parsing, and cheerio uses another module called htmlparser2. If the issue is the XML being mangled then I would look there. htmlparser2 says it can handle XML. https://github.com/cheeriojs/cheerio |
I use gulp-htmltidy for emails to convert HTML to XHTML again with this doctype option:
|
I'm attempting to use this to inline styles in an XSL template. In order for the XSLT processor to operate correctly, it requires strict XHTML with proper closing tags. For example:
Becomes
Without the closing tag. This is not legal XML, therefore fails processing.
Is there a way to output as XHTML with closing tags everywhere?
The text was updated successfully, but these errors were encountered: