Skip to content

External URLs are getting clobbered when parsing styles #9

@ihoka

Description

@ihoka

When parsing custom CSS into styles to be embedded inline into the email body, if the styles contain background-image attributes with complete image URIs, the style gets truncated at the ":" symbol after the protocol.

Example:

p {
background-image: url(http://example.com/image.jpg);
color: red;
}

will result in

<p style="background-image: url(http; color: red;">

Fixed in this commit: http://github.com/ihoka/mail_style/commit/eddefa93165066f2513f2933ea332a473e046f5c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions