Menu

📰
0

Reddit - Please wait for verification

Learn Javascript·/u/apriltaurus·3 days ago
#ivYYfzK1
Reading 0:00
15s threshold

I am trying to pass formData into html. JSON.stringify works fine for the one-line inputs, but for the textarea when I use stringify I'm seeing ASCII characters when I want the text to appear formatted. i.e. I'm getting Hello\nWorld when I want Hello World I currently have this: ` Form submission: Name: ${JSON.stringify(name)} Email: ${JSON.stringify(email)} Timestamp: ${JSON.stringify(timestamp)} Message: ${JSON.stringify(message)} ` submitted by /u/apriltaurus [link] [comments]

Read More