dev.khosromanesh's avatar

how parse html file with js

hello , i want to parse a simple html file and console.log data

for example assume this example.html file :

<td id="id">
    value
</td>

we want to console.log(document.getElementById('id').value) by file input ... how that can be possible ?

0 likes
6 replies
Sinnbeck's avatar

So you want to upload the html file to the backend, and then return it as html, that can then be parsed?

Please or to participate in this conversation.