Page is a not externally linkable
Marked - 7:38 am on Jul 5, 2011 (gmt 0)
@brotherhood of LAN: that is super cool :D I got it working except for that it messes with quoted html elements inside javascript.
For example, the html has the follow in it (this is the ORIGINAL html): <script type="text/javascript">
var FAVE_TEMPLATE = new Template( "<h3>Unfollow this forum</h3><div class='ipsPad'><span class='desc'>If you unfollow this forum this you will no longer receive any notifications</span><br /><p class='ipsForm_center'><input type='button' value='Unfollow this forum' class='input_submit _funset' /></p></div>");
</script>
And this is transferred after $dom->saveHTML();, even without any changes to the html, to the following: <script type="text/javascript">
var FAVE_TEMPLATE = new Template( "<h3>Unfollow this forum<div class='ipsPad'><span class='desc'>If you unfollow this forum this you will no longer receive any notifications<br /><p class='ipsForm_center'><input type='button' value='Unfollow this forum' class='input_submit _funset' /></script></div>");
If that's a bit long, just look at the end of both of these, you can see the ending div is moved outside of the script tags.
Any idea what I can do about it?