We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mercury.parse(url, { contentType: 'text\html' }).then(result => console.log(result) );
{... ,contant: {text:"this is sample text",html:"<body>this is sample text</body>"}
Mercury.parse(url, { contentType: 'text' }).then(result => console.log(result) );
{... ,contant: "this is sample text"} will only give text as content value.
{... ,contant: "this is sample text"}
Is there any way in which I can pass both text and html as contentType at a same time with only single network call?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected Behavior
Mercury.parse(url, { contentType: 'text\html' }).then(result => console.log(result) );
Output:-
{... ,contant: {text:"this is sample text",html:"<body>this is sample text</body>"}
Current Behavior
Mercury.parse(url, { contentType: 'text' }).then(result => console.log(result) );
Output:-
{... ,contant: "this is sample text"}
will only give text as content value.
Detailed Description
Is there any way in which I can pass both text and html as contentType at a same time with only single network call?
The text was updated successfully, but these errors were encountered: