title: Convert txt to HTML with batch file
body: <p>I have plain txt file like:</p>
  
  <pre><code>===
  Date:30.05.2013
  **Header**
  text
  
  ===
  Date:29.05.2013
  **Header**
  text
  
  ===
  etc.
  </code></pre>
  
  <p>I want to convert it into html file like:</p>
  
  <pre><code>&lt;hr&gt;
  &lt;b&gt;Date:30.05.2013&lt;/b&gt;
  &lt;h1&gt;Header&lt;/h1&gt;
  text
  &lt;br&gt;
  &lt;hr&gt;
  &lt;b&gt;Date:29.05.2013&lt;/b&gt;
  &lt;h1&gt;Header&lt;/h1&gt;
  text
  &lt;br&gt;
  &lt;hr&gt;
  etc.
  </code></pre>
  
  <p>I know about "for" command, i use it </p>
  
  <pre><code>for /f "tokens=*" %%f in ('type news.txt') do (
  if [%%f]==[===] (echo ^&lt;hr/^&gt; &gt;&gt;news.htm) ELSE (echo %%f^&lt;br/^&gt; &gt;&gt;news.htm)
  )
  </code></pre>
  
  <p>But i dont know, <strong>how perform other action for strings that contains keyword</strong> (e.g. Date or *) and dont know, how insert blank br tag for blank strings in text file.</p>
  
  <p>Please, help me, i spent many hours =(</p>