Closed
Description
This ERB code:
"<b>Foobar</b>".html_safe + "<b>foo</b>
Becomes this HTML:
<b>Foobar</b><b>foo</b>
But this ERB code:
<%= "<b>Foobar</b> %s".html_safe % "<b>foo</b>" %>
Becomes this HTML:
<b>Foobar</b> <b>foo</b>
In the second case, I would expect only <b>foo</b>
to be escaped, but instead both strings are escaped.
Is there any deep reason for this or is it just on omission?
Metadata
Metadata
Assignees
Labels
No labels