Jquery - return html as a string
Posted
by McNabbToSkins
on Stack Overflow
See other posts from Stack Overflow
or by McNabbToSkins
Published on 2010-05-19T12:54:58Z
Indexed on
2010/05/19
13:00 UTC
Read the original article
Hit count: 280
jQuery
I am using the Jquery Wysiwyg editor and I am trying to capture the html that makes up the content area to store in a DB. Is there anyway to get html of a element and save it as a string? My code looks like tihs
<iframe id="wysiwyg_IFrame>
<html>
<head></head>
<body>
<ul>
<li>This is a test</li>
</ul>
</body>
</html>
</iframe>
I would either like to get a string that starts with <html>....</html>
or just the body <body>...</body>
does anyone know if this is possible? Thanks
© Stack Overflow or respective owner