[Git error: "Please make sure you have the correct access rights and the repository exists"](https://stackoverflow.com/questions/25927914/git-error-please-make-sure-you-have-the-correct-access-rights-and-the-reposito#answer-31706614)
### CORS/Same Origin Policy Explanation
[XMLHttpRequest cannot load XXX No 'Access-Control-Allow-Origin' header](https://stackoverflow.com/questions/35553500/xmlhttprequest-cannot-load-xxx-no-access-control-allow-origin-header#answer-35553666)
---
[Unescape HTML entities in JavaScript?](https://stackoverflow.com/questions/1912501/unescape-html-entities-in-javascript#answer-34064434)
[DOMParser](https://developer.mozilla.org/en-US/docs/Web/API/DOMParser)
### Problem:
API was returning HTML tags in response:
```json
[{"id":734644864,"title":"HOW DO I MAKE YOU LOVE ME - THE WEEKND","description":"Credits :<br \/>\n<br \/>\nDirected by Jocelyn Charles @jocelyncharles1<br \/>\n<br \/>\nCreative direction & concept by Cliqua @cliquamundo<br \/>\n<br \/>\nStory by Abel Tesfaye @theweeknd , Cliqua @cliquamundo"}]
```
### Code Solution:
```js
function htmlDecode(input) {
const doc = new DOMParser().parseFromString(input, "text/html");
return doc.documentElement.textContent;
}
```
```jsx
<p>{htmlDecode(video["description"])}</p>
```
---
[What does the @ mean inside an import path?](https://stackoverflow.com/questions/42749973/what-does-the-mean-inside-an-import-path)
___
## [How to replace local branch with remote branch entirely in Git?](https://stackoverflow.com/questions/9210446/how-to-replace-local-branch-with-remote-branch-entirely-in-git#answer-61490618)
```bash
git reset --hard @{u}
```
---
**Tags**: #stackoverflow #git #cors