Why the single quote (') of opener and closer in HTML attribute is rendered as double quote ('') in document.documentElement.outerHTML? and how to prevent it?
I have this element in my html page:
<div data-css="mo-cssclassvalueuseditems" class='{MO-CSS-CLASS value="UsedItems"}'>
</div>
When I tried to get the entire html via document.documentElement.outerHTML
, as a result, it becomes like this:
<div data-css="mo-cssclassvalueuseditems" class="{MO-CSS-CLASS value="UsedItems"}">
</div>
For the "
, it doesn't matter at all. But for the opener and closer of single-quotes ('), why it's rendered as double-quote ('') instead of single-quote (') ?
Is there any solution to keep the quotes as it is?