parser icon indicating copy to clipboard operation
parser copied to clipboard

Way to get text and html using single network call

Open mahetakaushik opened this issue 2 years ago • 0 comments

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?

mahetakaushik avatar Apr 25 '23 09:04 mahetakaushik