Skip to content

Patch for href and src attributes #6

@enzodev

Description

@enzodev

in the function newAttribute you should replace

val = encodeForAttribute(val);

with this one:

if (!((attr == "src") || (attr == "href"))) val = encodeForAttribute(val);

Try html2dom with this string: '< iframe width="420" height="315" src="http://www.youtube.com/embed/anything" frameborder="0" >< /iframe >'

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