0

Currently to enter the title of a page, all you have to do is enter the text in the WYSIWYG editor.

enter wysiwyg

But if you enter HTML like example title about stuff™ by company© or in my case

what i entered

then you get a result with no html, like

result of html

So my question is how to make changes in Refinery so that the title can accept HTML?

I looked the the documentation about page titles but that topic was not addressed.

JGallardo
  • 11,074
  • 10
  • 82
  • 96
  • 1
    I don't know about Refinery but what you need is `.html_safe` method, to "translate" html tags of a string into actual html tags. – MrYoshiji Sep 17 '13 at 18:10
  • Thank you @MrYoshiji, that got me looking at [this post about .html_safe](http://stackoverflow.com/questions/4251284/raw-vs-html-safe-vs-h-to-unescape-html). So it looks like I just have to locate the controller for that view now. – JGallardo Sep 17 '13 at 18:27
  • Page titles are not handled by a controller, but by the ContentPagePresenter. Here's the code for version 2.1: https://github.com/refinery/refinerycms/blob/2-1-stable/pages/app/presenters/refinery/pages/content_page_presenter.rb – parndt Sep 17 '13 at 20:05

0 Answers0