Cheerio: XML: Colons (:) interpreted as pseudo class instead of tag names?

Created on 3 Mar 2015  路  1Comment  路  Source: cheeriojs/cheerio

    $('foo:bar') // error: unmatched pseudo-class

Is there a workaround or can I escape the colon somehow?
I have set xmlMode to true.

Most helpful comment

Escaping the colon with double backslashes will solve this problem.

    $('foo\\:bar')

>All comments

Escaping the colon with double backslashes will solve this problem.

    $('foo\\:bar')
Was this page helpful?
0 / 5 - 0 ratings

Related issues

bxqgit picture bxqgit  路  3Comments

Tetheta picture Tetheta  路  3Comments

gajus picture gajus  路  4Comments

miguelmota picture miguelmota  路  3Comments

M3kH picture M3kH  路  4Comments