title: how to display fetched json data from database in node js??.without json format
body: <p>here is my code.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var http=require("http");
  var fs = require("fs");
  var express = require("express");
  var app = express();
  var path = require("path");
  var mysql = require('mysql');
  var ejs = require("ejs")
  var bodyParser = require('body-parser');
  app.set('view engine' , 'ejs');
  app.use(bodyParser.urlencoded({ extended: false }));
  app.use(bodyParser.json());
  var con = mysql.createConnection({
      host: "localhost",
      user: "root",
      password: "",
      database: "testn"
  });
  
  con.connect(function(err) {
      if (err) throw err;
      con.query("SELECT * FROM form", function (err, result, fields) {
        if (err) throw err;
        console.log(JSON.stringify(result));
        app.get('/', function(req, res) {
          res.render('index',{data:JSON.stringify(result)});
        
        });
  
      });
    });
  
  app.listen(3010);
  console.log("Running at Port 3010");</code></pre>
  </div>
  </div>
  </p>
  
  <p>and here is my html </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="ie=edge"&gt;
      &lt;title&gt;Document&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;header&gt;
          &lt;div class="container"&gt;
              &lt;p&gt;&lt;%=data%&gt;&lt;p&gt;
               
          &lt;/div&gt;
      &lt;/header&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>and here is my output</p>
  
  <p>[{"name":"Prakash","email":"prakashvpsm@gmail.com","description":"uykiukjk"},{"name":"Mathan","email":"v.prakash.av@gmail.com","description":"uykiukjk"},{"name":"prakashvpsm","email":"prakash@123.com","description":"uykiukjk"},{"name":"Prakash","email":"qdw@fff.com","description":"wddfwdpfk"},{"name":"Prakash","email":"prakashvpsm@gmail.com","description":"uykiukjk"}]</p>
  
  <p>but i dont want in json format .i want without only the data. The data is fetched from local server</p>