Open mahetakaushik opened 1 year ago
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?
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?