I like to fetch the values between two string. this is what I am using as a placeholder to change the stuff between. so basically I appended these custom [[num}] to each tag. Im trying to make a database of it. then I am trying to make custom/predefined edits of it base on certain parameters. so basically, if there is a way to get/change/remove the things inside of the open and close strings.
<script>
var num = 14;
</script>
HTML
[[14}]<img width="50" height="50" src="//cdn.com/img5.jpg" alt="comment-image">[{14]] [[15}]<img width="50" height="50" src="//cdn.com/img6.jpg" alt="comment-image">[{15]]
data-numattribute, then select bydocument.querySelector(`[data-num='${num}']`)?