title: How can I add greater than and less than into a batch file variable
body: <p>When I try</p>
  
  <pre><code>@echo off
  set PTag=^&lt;BR^&gt;
  echo %PTag%
  </code></pre>
  
  <p>I get nothing.</p>
  
  <p>Now what's interesting is that if there's an empty line after the last echo, I get:</p>
  
  <pre><code>The syntax of the command is incorrect.
  </code></pre>
  
  <p>If I remove the @echo off, then it actually outputs</p>
  
  <pre><code>echo &lt;BR&gt;
  </code></pre>
  
  <p>I want to add various HTML tags inside variables and then concatenate these variables to create an HTML that I will output in a file.</p>