anchor.diff:  set "ARG=!%1!"
   %ECHOSVARS.D% 1 ARG
   for %%e in (quot lt gt amp vert rpar lpar rbrack lbrack sp bs cr lf hat) do (
  -  for %%c in ("!DEBUG.%%e!") do set "ARG=!ARG:[%%e]=%%~c!"
  +  for %%c in ("!@%%e!") do set "ARG=!ARG:[%%e]=%%~c!"
   )
   %ECHOSVARS.D% 2 ARG
   :# Then convert special characters that need special attention
  
positive.code: call :EscapeCmdString ARG ARG 1 %CallerExp%
  endlocal & set ^"%OUTVAR%=%ARG%^" ! &:# The ! forces always having !escaping ^ removal in delayed expansion mode
  goto :eof
  
  :TestConvertEntities %1=VAR [%2=0|1=Disable|Enable Delayed Expansion]
  setlocal EnableDelayedExpansion
  
negative.code: :# %2 = Source variable name
  :strcat
  %FUNCTION%
  %UPVAR% %~1
  call set "%~1=%%%~1%%%%%~2%%"
  %RETURN%
  
  :#----------------------------------------------------------------------------#
  