Hey! If you're trying to capture the html from a link in javascript, `fetch()` is the way to go, but you gotta handle the response properly. Try this:
```javascript
fetch('your-url-here')
.then(response => response.text())
.then(html => console.log(html))
.catch(error => console.error('Oops:', error));
```
If it’s failing, yeah, probably CORS. Try a proxy like [CORS Anywhere](https://cors-anywhere.herokuapp.com/) for testing.
```javascript
fetch('your-url-here')
.then(response => response.text())
.then(html => console.log(html))
.catch(error => console.error('Oops:', error));
```
If it’s failing, yeah, probably CORS. Try a proxy like [CORS Anywhere](https://cors-anywhere.herokuapp.com/) for testing.
