Skip to content
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

meta value is not parsed correctly #21

Open
jeremys opened this issue Apr 12, 2011 · 0 comments
Open

meta value is not parsed correctly #21

jeremys opened this issue Apr 12, 2011 · 0 comments

Comments

@jeremys
Copy link

jeremys commented Apr 12, 2011

Hi there,

If you look at a live journal entry like this one: http://cananian.livejournal.com/60624.html
You can see the

When doing: description = htmlparser.DomUtils.getElements( { tag_name: "meta", name: "description" }, dom);
Instead of having a result like this:

    [ { raw: 'meta name="description" value="the whole post in there"/',  
        data: 'meta name="description" value="the whole post in there"/',  
        type: 'tag',  
        name: 'meta',  
        attribs:   
         { name: 'description',  
           value: 'the whole post in there' } } ]  

I have this:

    [ { raw: 'meta name="description" value="the whole post in there"/',
        data: 'meta name="description" value="the whole post in there"/',
        type: 'tag',
        name: 'meta',
        attribs: 
         { name: 'description',
           value: 'the whole post in there' ,
           the: 'the',
           whole: 'whole',
           post: 'post',
           in: 'in',
           there: 'there' } } ]

Hope it helps!

kirbysayshi pushed a commit to kirbysayshi/node-htmlparser that referenced this issue Dec 19, 2013
fix of htmlparser.DomUtils.getOuterHTML for directives
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant