Need to extract one key from a string containing HTML doc using JavaScript /NodeJs.
I am getting a HTML Page as response of one service which includes a key, which need to be extracted, the key is inside a tag and the page is heavily nested , even after converting to JSON also didn't help.
Tried with regular expression that also not fetching all results (since there are many matches with tag).
The key in tag is like the following:
<script>
$function(){
//some codes
app.init({
//some code
access : {"AccessKey": "dwdfsfcnoidxjbvukv"}
});
//some code
</script>