xml-to-json icon indicating copy to clipboard operation
xml-to-json copied to clipboard

Ampersand (&) not correctly escaped

Open jdelaiglesia opened this issue 3 years ago • 1 comments

I'm having trouble trying to parse XML from this link:

http://www.managerzone.com/xml/team_league.php?sport_id=1&league_id=16222

Just because of the ampersand, the API considers it as a new parameter so it parses the content of this link instead:

http://www.managerzone.com/xml/team_league.php?sport_id=1

Probably this would help:

https://stackoverflow.com/questions/5020345/how-to-escape-ampersand-character-in-form-input-using-jquery

jdelaiglesia avatar Jul 04 '21 06:07 jdelaiglesia

Same as #7.

You're supposed to escape the ampersand yourself: https://api.factmaven.com/xml-to-json/?xml=http://www.managerzone.com/xml/team_league.php?sport_id=1%26league_id=16222

GitBoudewijn avatar Nov 18 '21 12:11 GitBoudewijn