javascript - Html Code inside an tag, innerHTML doesnt return all the code -


I want all the code inside a pre-tag but internal HTML or jazzery: html () does not return all the code. Some things, where are cut, like methodology and head body tags, etc.

    

When I alert the inside HTML of the #pre object, it only warns the developer

to resolve it Is there any other possibility?

If you really want to do this, use a script

  & lt; Script id = "pre" type = "text / template" & gt; & Lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div & gt; Asdfds & lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt; & Lt; / Script & gt; $ ('#team') text () .;    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -