Skip to content

Patch for href and src attributes #6

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 >'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to 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