-1

I have the following HAML code

//add some text
%div.text
  <%= answer.text %>

The result in the browser is as such

enter image description here

How can I add quote marks to this text so that is shows "test remuse" instead?

Mik
  • 4,117
  • 1
  • 25
  • 32
Zhen
  • 12,361
  • 38
  • 122
  • 199

1 Answers1

0

A more natural solution:

//add some text
%div.text
  "#{answer.text}"

And I think you don't need a %div, because .text is a div with class="text":

.text
  "#{answer.text}"
Mik
  • 4,117
  • 1
  • 25
  • 32