When copy-paste code from a webpage to the editor in learnlatex.org, the HTML part of the code is also copied. For example, have a look at the following code
\documentclass{article}
\begin{document}
Hello, world
\end{document}
How it is displayed in my browser:

Copy it and paste to learnlatex.org:

[still compilable with LaTeX Online, not yet tested with Overleaf]
When pasting, all formatting of the code should be removed, leaving only the plain text. For example this is, I believe, the intended behaviour: that very piece of code pasted to https://paste.ubuntu.com:
