diff --git a/app/helpers/admin/application_helper.rb b/app/helpers/admin/application_helper.rb index 138e6821192ad195ba9d4d853fbc54cfe879619f..c27d0ae74c0a6c6e15028fc975080187ad2bcaf4 100644 --- a/app/helpers/admin/application_helper.rb +++ b/app/helpers/admin/application_helper.rb @@ -64,7 +64,9 @@ module Admin::ApplicationHelper text = sanitize html.to_s, tags: %w(table a figure img figcaption i em b strong h2 h3 h4 h5 h6 blockquote), attributes: %w(href alt title target rel src srcset width height) - CGI.escapeHTML text + text = CGI.escapeHTML text + text = text.strip + text end private