Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Users可以上传Images并添加一个Description.
Users
Images
Description
但是在输入描述后output,页面上的只是原始数据。含义空格和换行符被忽略。
output
我如何设置输出respects the Line Breaks?
respects the Line Breaks
原始数据应包括换行符并以 HTML 格式显示,您可能希望使用simple_format:
simple_format
<%= simple_format(params[:output]) %>