title: I want to return ul li from file get contents
body: <p>I have one txt file and i want to rutern in php file in ul,li how i can do this?</p>
  
  <p>test.txt =></p>
  
  <pre><code>line1.
  line2.
  </code></pre>
  
  <p>index.php =></p>
  
  <pre><code>$txtfile=file_get_contents("test.txt");
  
  &lt;ul&gt;
  &lt;?php echo htmlspecialchars($list2) ?&gt;
  &lt;ul&gt;
  </code></pre>
  
  <p>but i want this:</p>
  
  <pre><code>&lt;li&gt;line1.&lt;/li&gt;
  &lt;li&gt;line2.&lt;/li&gt;
  </code></pre>