Something seems to have gone wrong with the site.
When I copy code within code tags, for example at
http://www.codingforums.com/showthread.php?t=280407
I get
<script type = "text/javascript"> String.prototype.isValidDate = function(){ var arrParts = this.split("/"); var date1 = new Date(this.toString()); dtReturn = (date1.getMonth()+1 == parseInt(arrParts[0],10) && date1.getDate() == parseInt(arrParts[1],10) && date1.getFullYear() == parseInt(arrParts[2],10) ); return dtReturn; // true or false } var strDate1 = "01/31/2012"; // USA date format var strDate2 = "2/31/2012"; alert(strDate1 + ": " + strDate1.isValidDate()); alert(strDate2 + ": " + strDate2.isValidDate()); </script>
Read more at
http://www.codingforums.com/showthre...85cu8q5lqo7.99
Note that the newlines are lost and a message about "read more" is appended.
Is this something to do with Facebook/Twitter? It is an annoying glitch!