title: NGINX: How to return inline html?
body: <p>I want to achieve something like this:</p>
  
  <pre><code>server {
      listen 80;
      location / {
          return 200 &lt;html&gt;&lt;body&gt;Hello World&lt;/body&gt;&lt;/html&gt;
      }
  }
  </code></pre>
  
  <p>i.e., any request should return the inline html. Is this possible with NGINX?</p>
  
  <p>EDIT:</p>
  
  <p>I tried this:</p>
  
  <pre><code>server {
      listen 80;
      location / {
          return 200 '&lt;html&gt;&lt;body&gt;Hello World&lt;/body&gt;&lt;/html&gt;'
      }
  }
  </code></pre>
  
  <p>But testing in browser did not render the html, instead the browser tried to download a file containing the html which is not the behavior I wanted.</p>