I am getting a response from my RestAssured call as ContentType text/plain;charset=UTF-8
.
I searched the internet but am unable to find a nice way to get the content out of the message as using the below is not so nice;
String content = response.then().extract().body().htmlPath().get().children().get(0).toString();
How can I extract the contents of this response a little more nice?