     expr = Macro.prewalk(expr, &handle_assign/1)
 
     # Decide if the expression is inside the tag or not
-    shadow = if Regex.match?(~r/<\S+/, no_tags(html)) do
+    {injected, shadow} = if Regex.match?(~r/<\S+/, no_tags(html)) do
       inject_attribute(buffer, expr, line, html)
     else
       if in_script?(html) do

        [unquote(buffer) | unquote(to_safe(expr, line))]
      end
    end
  end

  @doc false

  @doc false
  def handle_expr({:safe, buffer}, "", expr) do
    expr = Macro.prewalk(expr, &handle_assign/1)
    {:safe, quote do
      tmp2 = unquote(buffer)
      unquote(expr)
      tmp2
    end}
  end

  @doc false
