My app is using a view helper than adds a layout helper that contains the code
content_for(:title) { h(page_title.to_s) }
and I'm trying to modify it somewhat but have开发者_如何学C no idea what the h() means?
It is an ERB method to escape the HTML. See the ERB docs for more info about it.
精彩评论