简体   繁体   English

在 HTML 表单中复制新段落

[英]Copy new paragraphs in an HTML form

I have an HTML form that looks like this:我有一个如下所示的 HTML 表单:

<textarea class="input" name="content" cols="70" rows="10" wrap="hard"></textarea>
The value in the textarea is then transfered into a database so it can be displayed later.然后将 textarea 中的值传输到数据库中,以便稍后显示。 What I ask myself is: how can the style and the form of the text be remained, so that when a user enters a text, all his new paragraphs are also being saved in the database?我问自己:如何保持文本的样式和形式,让用户输入文本时,他所有的新段落也都保存在数据库中?

The question could also be: how does the form, which I am currently using on stackoverflow.com, work, how does it save the paragraphs that I make and how do the options on top work, which can make my text bold, italic etc.?问题也可能是:我目前在 stackoverflow.com 上使用的表单如何工作,它如何保存我制作的段落以及顶部的选项如何工作,这可以使我的文本变为粗体、斜体等.?

Thank you.谢谢你。

You need to research about markdown answers here is one https://stackoverflow.com/a/35057668/175554您需要在这里研究降价答案是一个https://stackoverflow.com/a/35057668/175554

and another one How can I convert HTML to markdown?和另一个如何将 HTML 转换为 Markdown?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM