Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

QXmlStreamReader choking on "=" in attribute when attribute has "&" instead of "&"

$
0
0
Hello, Sorry if I’m posting this in the wrong place but I don’t know if it’s a bug or intended behavior. I’m trying to make a screen scraper to pull info from a website using QXmlStreamReader but I’m running into a problem when an HTML tag looks something like this: <script src=“example.php?parm1=test&parm2=test” /> It gives me the error “Expected ‘;’, but got ‘=’.” but if I change the & to & then it works fine. Is there any workaround for this or would I need to manually change all of the & to &amp before I process the file? Thanks

Viewing all articles
Browse latest Browse all 13965

Trending Articles