Repository navigation
|
I am looking for a property for method that will return the raw body of the response. Is it possible to receive the raw body from a response? Thank you in advance! |
Answered by
todordev
Nov 3, 2022
Replies: 2 comments
|
How about |
0 replies
|
Thank you very much! // Rendered HTML
const renderedHtml = await page.content();
// Raw HTML
const rawHtml = await response.body().toString(); |
0 replies
Answer selected by
metalwarrior665
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you very much!
So, I found that page.content() returns rendered HTML. response.body() returns the raw HTML code.