Skip to content

Roadie output mangled when control chars are present in conditional comments #159

Open
@iprlic

Description

@iprlic

Run into this issue with \b char.

Example:

Roadie::Document.new("<!--[if mso]>hello \bworld<![endif]-->").transform

Output:

<!DOCTYPE html>\n" + "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"></head><body><p>world</p></body></html>\n

The comments have been stripped away, and all of the string before \b is missing.
This does not happen if the char is not in a comment.

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