title: Send HTML string to node server
body: <p>I want to send a HTML string data to nodjs server. But, when the api method just doesn't pick up the data string. It was working fine when I send over the pure text string without html tags. Do I need to encode the html string before sending to server?</p>
  
  <pre><code>HTML data string looks like this: &lt;p&gt; Some text &lt;/p&gt;
  
  Pure data string looks like this: Some text
  </code></pre>
  
  <p>Thank you.</p>
  
  <p>Client side code:failed.</p>
  
  <pre><code> pushData(value: any) {
    return this.httpClient.post('http://localhost:3030/api/postdata/' + 'This is a test', {observe: 'body'}).subscribe(res =&gt; {
  
    }, err =&gt; {
  
    });
    }
  </code></pre>
  
  <p>Client side code:passed</p>
  
  <pre><code> pushData(value: any) {
    return this.httpClient.post('http://localhost:3030/api/postdata/' + 'This is a test', {observe: 'body'}).subscribe(res =&gt; {
  
    }, err =&gt; {
  
    });
    }
  </code></pre>
  
  <p>Server side code:</p>
  
  <pre><code>app.post('api/postdata/:data',function(req,res){
  const stringData = req.data;
  }
  </code></pre>