gpt4 book ai didi

html -
里面的文本格式没有了,怎么回事?

转载 作者:行者123 更新时间:2023-11-28 19:08:52 26 4
gpt4 key购买 nike

我在 <textarea></textarea> 中输入了一些文本, 我输入了一些换行符、空格等。故意。但是,在提交文本并在 <pre></pre> 内呈现之后, 换行符,空格消失了,它们被类似 \r\n\r\n 的东西所取代, 怎么了?如何保持原始格式?

 <textarea name="detail" id="detail" rows="7" cols="60" style="font-family:Arial, Helvetica, sans-serif"><?php echo $detail ?></textarea>

我用 HTML 呈现文本。

这是输出:

The urban agglomeration of the Hangzhou metropolitan area (杭州市区) has a resident population of 3.9319 million as of 2003, of which 2.6367 million ...\\\\r\\\\nHangzhou is located in northern Zhejiang province, eastern China, at the southern end of the Grand Canal of China, on the plain of the mid ...\\\\r\\\\nIn late summer (August to September), Hangzhou, along with other cities in Zhejiang province, suffer typhoon storms, but typhoons seldom strike it directly. Generally. Edited\r\n\r\nAnother line.

数据类型是varchar(MySQL),请问有什么问题吗?

最佳答案

PHP

Allow HTML in TextArea

asp.net

<%@ Page ValidateRequest="false"

关于html - <pre></pre>里面的文本格式没有了,怎么回事?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1901335/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com