X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ac48c6a16f97ae20c0bbf33eb05d0c76efeff9b2..bbc14fbcaa5a1c43f9b2638b156f8775e3a18ea8:/app/controllers/site_controller.rb diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index cf4465b9c..fa33deeee 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -85,4 +85,8 @@ class SiteController < ApplicationController def copyright @locale = params[:copyright_locale] || I18n.locale end + + def preview + render :text => RichText.new(params[:format], params[:text]).to_html + end end