People can copy texts by just accesing URL.
After you host this website (you can host it on GitHub Pages), create URL with the parameneters like:
https://example.com/?t=hello%20world
where parameter t
is the text you want people to copy (make sure it's URL encoded).