Console.log HTML Entities

This is not a question about the test itself, but it is related. How can I log an object congaing HTML as plain text?
if the object is ‘&’ , I want to display ‘&’ instead of &

similar to how alert displays … (view as raw)
alert(Object.entries(htmlKVP))
&,&,<,<,>,>,",",’,’
image

This is my code…

var htmlKVP={
‘&’: ‘&’, ‘<’:’<’, ‘>’:’>’, ‘"’:’"’, ‘’’:"’"
};

console.log(Object.entries(htmlKVP));

this is what the console displays…

&,&,<,<,>,>,",",’,’

this is what I want to display…
&, &, < <, > >, ", ", ', ’

you will need to use the browser console to see this as you want, the freecodecamp editor console will convert the codes to the symbols