[英]Tab spaces in textarea issue
Here's my code for my simple CRUD site: 这是我的简单CRUD网站的代码:
<textarea id="bb" class="form-control"name="text" placeholder="Edit this question, <?= $_SESSION['name'] ?>?"> <?= $text ?> </textarea>
But the problem is that the textarea has 2 tab spaces at the beginning of the text and after the text there is a space with a tab space next to it. 但是问题是,文本区域在文本的开头有2个制表符空间,在文本之后有一个空格,其旁边有一个制表符空间。
I'm very sure that the text is trimmed in the MySQLi database. 我非常确定在MySQLi数据库中修剪了文本。 I'm using Bootstrap BTW.
我正在使用Bootstrap BTW。
Thanks in advance. 提前致谢。
删除<textarea></textarea>
之间的空间
<textarea id="bb" class="form-control"name="text" placeholder="Edit this question, <?= $_SESSION['name'] ?>?"><?= $text ?></textarea>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.