nested content_tags escape inner html.. why?

前端 未结 3 1255
情书的邮戳
情书的邮戳 2021-02-04 15:36

So, if I loop through and create a collection of li/a tags, I get as expected.. an array of these tags:

(1..5).to_a.map do
  content_tag(:li) do
    link_to(\"bo         


        
3条回答
  •  无人共我
    2021-02-04 16:25

    Not positive, but I think that the html escaping happens at each "layer" (for lack of a better term; each iteration)― what I mean is at the inner block level (1..5)…. and then at the outer block level (content_tag(:ol) do ...

提交回复
热议问题