开发者

Parsing Line Breaks in Mash Linkedin Gem

开发者 https://www.devze.com 2023-03-08 12:15 出处:网络
The output from my mash has \\n\\n included but when I extract the data, none of the line breaks are parsed.

The output from my mash has \n\n included but when I extract the data, none of the line breaks are parsed.

This is wha开发者_如何学Got I'm using:

<%= @user.linkedin_token.callback.summary %>

How can I get the line breaks included?

Thanks


Sorted by using simple_format. that was easy!

<p><%= simple_format @user.linkedin_token.callback.summary %></p>
0

精彩评论

暂无评论...
验证码 换一张
取 消