I’m trying to output my title with a special character, but it’s converting the entire thing.
@title contains user generated content so i want to make sure it’s escaped. It seems to be converting the entire string though and ignoring the raw. how do i do this so its still secure?
if @title.nil?
"Web App"
else
"#{@title}" + raw(" · Web App")
end
This works in my views: