fix urls containing #
use textContent instead of innerText
innerText sometimes doesn't get the correct text (missing double spaces)