node.js - HTML tag is not accepted in nodejs -


in code html table tag not accepted.i don't why within codes have tried result not came want table format border style.html within code tried

this html table :

let mailoptions = {     from: 'aaaaaaaaa',     to: 'bbbbbbbbbb',     subject: 'test',     html:`<html><head>  <body> <table> <tr>      <th>id </th><th>templatename</th>     <th>description</th>     <th>templatecontent</th>     <th>active</th> </tr> <tr>         <td>streamingtemplate.id.tostring()</td>//here table data should database not defined one.     <td>streamingtemplate.template_name.tostring()</td>     <td>streamingtemplate.description.tostring()</td>     <td>streamingtemplate.template_content.tostring()</td>     <td>streamingtemplate.is_active.tostring()</td> </tr> </table> </body> </head></html>` }; 

your <table> tag inside <head> tag.

change structure :

<html>     <head>     </head>     <body>         <table></table>     </body> </html> 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -