We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
第139天 如何让textarea标签中的内容原格式输出?
The text was updated successfully, but these errors were encountered:
<textarea name="demo" id="" cols="30" rows="10"> <code> <span> <i></i> </span> <div></div> </code> </textarea>
Sorry, something went wrong.
white-space: pre;可以考虑
white-space: pre;
replace正则检测格式然后用对应的标签进行替换,感觉挺符合标题的
输出?是转成html,在编译成dom?
不知道是不是我理解错误了, <textarea name="demo" id="" cols="30" rows="10"> dfjsk fsdfsd sdfsdfs sdf sdfsdfs </textarea>
<textarea name="demo" id="" cols="30" rows="10"> dfjsk fsdfsd sdfsdfs sdf sdfsdfs </textarea>
直接这样也可以原样输出
No branches or pull requests
第139天 如何让textarea标签中的内容原格式输出?
The text was updated successfully, but these errors were encountered: