HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by hinkley | Hacker News Reader
Full thread
hinkley
·
How’s the htmlsafe trick going to work if strings are immmutable?
View on HN
byroot
·
First, only literal strings are concerned. Second, Rails's `String#html_safe` method's return value is a new instance, it doesn't mutate the receiver in place.
Reply on news.ycombinator.com