In the following web there is a div with id first_div and a second div with id show.
By means of a variable text we store the text with the function text in the first div and we also show it with the function text in the second div with id show.
We see how the function text only saves the information of the text and not the html content that may have.
Interesting Articles