diff --git a/app/controllers/dtext_previews_controller.rb b/app/controllers/dtext_previews_controller.rb index 7fd6c901e..3ad3ab3ac 100644 --- a/app/controllers/dtext_previews_controller.rb +++ b/app/controllers/dtext_previews_controller.rb @@ -1,5 +1,5 @@ class DtextPreviewsController < ApplicationController def create - render :inline => "<%= format_text(params[:body]) %>" + render :inline => "<%= format_text(params[:body], :ragel => true) %>" end end diff --git a/app/views/artist_commentaries/_show.html.erb b/app/views/artist_commentaries/_show.html.erb index b61fb129d..7be442828 100644 --- a/app/views/artist_commentaries/_show.html.erb +++ b/app/views/artist_commentaries/_show.html.erb @@ -33,7 +33,7 @@ <% if artist_commentary.translated_description.present? %> <%= format_text(artist_commentary.translated_description, :ragel => true) %> <% else %> - <%= format_text(artist_commentary.original_description) %> + <%= format_text(artist_commentary.original_description, :ragel => true) %> <% end %> diff --git a/app/views/artist_commentaries/index.html.erb b/app/views/artist_commentaries/index.html.erb index 611b49957..5a468a12a 100644 --- a/app/views/artist_commentaries/index.html.erb +++ b/app/views/artist_commentaries/index.html.erb @@ -17,13 +17,13 @@

<%= h(commentary.original_title) %>

- <%= format_text(commentary.original_description) %> + <%= format_text(commentary.original_description, :ragel => true) %>

<%= h(commentary.translated_title) %>

- <%= format_text(commentary.translated_description) %> + <%= format_text(commentary.translated_description, :ragel => true) %>
diff --git a/app/views/artists/show.html.erb b/app/views/artists/show.html.erb index 17447bba0..05f1facce 100644 --- a/app/views/artists/show.html.erb +++ b/app/views/artists/show.html.erb @@ -4,7 +4,7 @@ <% if @artist.notes.present? && @artist.visible? %>
- <%= format_text(@artist.notes) %> + <%= format_text(@artist.notes, :ragel => true) %>

<%= link_to "View wiki page", @artist.wiki_page %>