I want to start a project where I want for the extra rea or iframe to take the full document and save to database and then later take it out with MERN stack.
For example the textarea contains this document:
#include <iostream>
int main(){
return 0;
}
What I want to do is save it as it is on database with JSON or somehow without formating it and making all inline, for example if save this to database, when I go back to textarea and take this text to be formated like this.
And no, I don't mean that will change the characters, rather the way is structured, if the text is something like this:
test
demo
hello
<HTML>
<h1>test</h1>
In the back I will receive this right:
test demo hello <HTML> <h1>test</h1>
Via Active questions tagged javascript - Stack Overflow https://ift.tt/2FdjaAW
Comments
Post a Comment