我有一个textarea.当我将包含换行符的文本粘贴到其中时,会自动删除换行符.但是当我手动输入换行符(击中carraige返回)时,它们会被保留.
如何强制textarea保留粘贴文本的换行符?
html textarea
html ×1
textarea ×1