anchor.diff:                          Value
                   end
           end, undefined, Context#dtl_context.local_scopes),
  -    VarValue1 = case VarValue of
  +    case VarValue of
           undefined ->
               erl_syntax:application(erl_syntax:atom(proplists), erl_syntax:atom(get_value),
                   [erl_syntax:atom(VarName), erl_syntax:variable("Variables")]);
           _ ->
               VarValue
  -    end,
  +    end.
  +
  +auto_escape(Value, Context) ->
       case Context#dtl_context.auto_escape of
           on ->
               erl_syntax:application(erl_syntax:atom(erlydtl_filters), erl_syntax:atom(force_escape),
  -                [VarValue1]);
  -        _ ->
  -            VarValue1
  +                [Value]);
  +        _ ->
  +            Value
       end.
   
   ifelse_ast(Variable, IfContentsAst, ElseContentsAst, Context) ->
  
positive.code:                                 {module, _} -> ok;
                                  _ -> {error, "code reload failed"}
                              end;
                          _ ->
                              {error, "beam generation failed"}
                      end;
                  _ ->
                      {error, "compilation failed"}
  
negative.code:     off.
  
  resolve_variable_ast({{identifier, _, VarName}}, Context) ->
      auto_escape(resolve_variable_name_ast(VarName, Context), Context);
  
  resolve_variable_ast({{identifier, _, VarName}, {identifier, _, AttrName}}, Context) ->
      auto_escape(erl_syntax:application(
              erl_syntax:atom(proplists), erl_syntax:atom(get_value),
          [erl_syntax:atom(AttrName), resolve_variable_name_ast(VarName, Context)]), 
          Context).
  
  resolve_variable_name_ast(VarName, Context) ->
      VarValue = lists:foldl(fun(Scope, Value) ->
  