Users have the ability to freely edit HTML content, which is fine. However, I need to relocate all IFRAME elements into a DIV. I attempted the following code:
$('#rolunk_content iframe').html ('<div>1' + $('#rolunk_content iframe').html() + '2</div>');
Unfortunately, this code does not seem to have any effect.
UPDATE: Here is a link to a live example on JSFiddle: http://jsfiddle.net/nE3jG/