1
Situation: I have an element textarea
which has standard text, which can then be changed by the user. The text has multiple lines.
Problem: Text takes into account the indentation spaces of the source code.
Pseudo-code:
<html>
<body>
<textarea>Olá,
Isto é um teste.</textarea>
</body>
</html>
When rendering the page, the text inside the element textarea
appears like this:
Hello,
This is a test.
Is there any way to avoid that?
I believe that only Javascript
– Guilherme Nascimento