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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -