I've got div on my page with id attribute with escaped HTML for example:
<div class="myDiv" id="<script>alert(1)</script>></div>
Can I with JavaScript and JQuery take the value of this attribute as it is coded? Using just $('.myDiv').attr('id) im just getting <script>alert(1)</script>
and I have to know if this HTML has already been escaped :O
Just need to get this attribute in JS as <script>alert(1)</script>