I am currently using the below function to create text that will be displayed using bootstrap's tooltip plugin. How come multiline tooltips only works with <br>
and not \n
? I prefer that there is not any html in my links' title attributes.
What works
def tooltip(object)
tooltip = ""
object.each do |user|
tooltip += "#{user.identifier}" + "<br>"
end
return tooltip
end
What I want
def tooltip(object)
tooltip = ""
object.each do |user|
tooltip += "#{user.identifier}" + "\n"
end
return tooltip
end