Is it possible to get the highlighted text in a paragraph of a website e.g. by using jQuery?
Yes you can do it with simple HMTL snippet:
document.addEventListener('mouseup', event => { if(window.getSelection().toString().length){ let exactText = window.getSelection().toString(); } }