pyquery
pyquery copied to clipboard
html parsing
Hi, when I try to parse a html string, Tested in python command line:
from pyquery import PyQuery as pq t = pq('<span class="test">.</span>') o = t("span.test").html() print(o) [ . ]
How do I get the original string?
That's ok, but it's not what I want
from pyquery import PyQuery as pq s = '<span class="test">.</span>' s = s.replace("&", "&") t = pq(s) o = t("span.test").html() print(o) [ . ]
I have the same problem with you: https://github.com/gawel/pyquery/issues/218
If it is <
that <
, the problem would be more serious.
"" looks like a kind of icon font which means it has nothing to do with this lib. There must be a font file(like .woff file) to tell the browser how  rendered. Without the corresponding font file or wrong font file, "" will looks weird or wrong. This is commonly used in website to protect secret data(like price) from crawlers which called font encryption.