Commenting on this question made me wonder.
In JavaScript, is it possible to get the "raw" value of a HTML attribute, i.e. the way it was written in the source before parsing?
Say you have this HTML:
<section id="theSection" title="The section">The section</section>
<script>
console.log(document.getElementById('theSection').title);
</script>
What do I need to write in the script to make it output the original escaped value of the title, rather than the parsed one?
JavaScript nodes have a lot of properties and values, but in this case, none that say "The section"
instead of "The section"
.