Is it possible to use html in placeholder attribute? For example i want to use <i class="icon-search"></i> instead of Search text.
=form_tag search_editions_path, method: :get, class: 'navbar-search pull-left' do
=text_field_tag :q, nil, class: 'search-query', placeholder: 'Search'
No, placeholder attribute accepts only plain text, for search text inputs you can use absolute positioned elements over them and for the user it will look like it is inside the text input.