Skip to content

Commit

Permalink
Merge pull request #1 from andrewmclagan/master
Browse files Browse the repository at this point in the history
Ability to parse CDATA
  • Loading branch information
Tucker-Eric authored Mar 29, 2017
2 parents 2f881fe + b543394 commit 75fa1fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/XmlRequestServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ public function register()
return [];
}
// Returns the xml input from a request
$xml = simplexml_load_string($this->getContent());
$xml = simplexml_load_string($this->getContent(), null, LIBXML_NOCDATA);
$json = json_encode($xml);

return json_decode($json, $assoc);
});
}
}
}

0 comments on commit 75fa1fc

Please sign in to comment.