Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How’s the htmlsafe trick going to work if strings are immmutable?


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: