Skip to content

Commit 75fa1fc

Browse files
authored
Merge pull request #1 from andrewmclagan/master
Ability to parse CDATA
2 parents 2f881fe + b543394 commit 75fa1fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/XmlRequestServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ public function register()
2424
return [];
2525
}
2626
// Returns the xml input from a request
27-
$xml = simplexml_load_string($this->getContent());
27+
$xml = simplexml_load_string($this->getContent(), null, LIBXML_NOCDATA);
2828
$json = json_encode($xml);
2929

3030
return json_decode($json, $assoc);
3131
});
3232
}
33-
}
33+
}

0 commit comments

Comments
 (0)