Comment by hinkley 3 days ago How’s the htmlsafe trick going to work if strings are immmutable? 1 comment hinkley Reply byroot 3 days ago 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.
byroot 3 days ago 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.
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.