comparison app/views/tweets/_tweet.html.erb @ 174:d35dbc09bd83

Less double escaping for actual content Ends up rather confusing.
author nanaya <me@nanaya.pro>
date Thu, 09 Aug 2018 19:31:22 +0900
parents df4be896ab8b
children 38598ae5a8f6
comparison
equal deleted inserted replaced
173:aa78d1eeb6e5 174:d35dbc09bd83
11 </p> 11 </p>
12 <% end %> 12 <% end %>
13 13
14 <p> 14 <p>
15 <%# FIXME: Twitter gem doesn't support extended mode when writing this %> 15 <%# FIXME: Twitter gem doesn't support extended mode when writing this %>
16 <%= auto_link(html_escape(expand_url( 16 <%= auto_link(expand_url(
17 tweet.unescaped_text, 17 tweet.full_text_extended,
18 tweet.attrs[:entities][:urls], 18 tweet.attrs[:entities][:urls],
19 tweet.attrs[:entities][:media] 19 tweet.attrs[:entities][:media]
20 ))) 20 ))
21 .gsub("\n", "<br />") 21 .gsub("\n", "<br />")
22 .html_safe 22 .html_safe
23 %> 23 %>
24 </p> 24 </p>
25 25