Microsoft Word creates awful HTML code. If you need to use it on a web page (especially in an HTML editor), you will want to clean it up a bit. Here’s a Javascript function that will take a string of text copied from Microsoft Word, and return it minus all the extraneous formatting that Word adds:

function cleanWordContent(wordContent)
{

        wordDiv = document.createElement(“DIV”);
 wordDiv.innerHTML = wordContent;

 for (var i=0;i {
  wordDiv.all[i].removeAttribute(“className”,”",0);
  wordDiv.all[i].removeAttribute(“style”,”",0);
 }
 wordContent = wordDiv.innerHTML;
 wordContent = String(wordContent).replace(/<\\?\?xml[^>]*>/g,”");
 wordContent = String(wordContent).replace(/<\/?o:p[^>]*>/g,”");
 wordContent = String(wordContent).replace(/<\/?v:[^>]*>/g,”");
 wordContent = String(wordContent).replace(/<\/?o:[^>]*>/g,”");
 wordContent = String(wordContent).replace(/ /g,”");//

 

 wordContent = String(wordContent).replace(/<\/?SPAN[^>]*>/g,”");
 wordContent = String(wordContent).replace(/<\/?FONT[^>]*>/g,”");
 wordContent = String(wordContent).replace(/<\/?STRONG[^>]*>/g,”");
 wordContent = String(wordContent).replace(/<\/?P[^>]*><\/P>/g,”");
 wordContent = String(wordContent).replace(/<\/?H1[^>]*>/g,”");
 wordContent = String(wordContent).replace(/<\/?H2[^>]*>/g,”");
 wordContent = String(wordContent).replace(/<\/?H3[^>]*>/g,”");
 wordContent = String(wordContent).replace(/<\/?H4[^>]*>/g,”");
 wordContent = String(wordContent).replace(/<\/?H5[^>]*>/g,”");
 wordContent = String(wordContent).replace(/<\/?H6[^>]*>/g,”");

 return(wordContent);

}

 

When DNN 3.x is released, it will be the most-changed of any version in DNN’s short history. In consolidating numerous breaking changes, the Core Team  (of which I am proud to be a member) took it upon itself to also get rid of some legacy baggage that DNN was carrying around from its IBuySpy roots. A richer U.I., Search, static localization, performance optimizations, content syndication and import/export data are some of the cool features that DNN 3.x sports.

There are also some warts such as FriendlyUrls, stylesheets gone crazy and overall inconsistent user interaction.

However, this is to be expected in the evolution of any open source project. Change takes time and improvements come as needs evolve.

If you don’t have a huge dependency on third-party modules, I would highly recommend taking the plunge. DNN 3.x is a fantastic piece of software and will enable you to create websites that are better looking and more feature-rich. I am going to work on upgrading all of my modules as quickly as possible to run on DNN 3.x portals.

 

If you blog often, then Das Blog and BlogJet are an amazing combination. I only started using BlogJet recently, and I tell you, I am hooked. This is an amazing program. It is quite intuitive and makes blogging very simple and efficient. 

Microsoft has altered the default security settings for web content running in the ‘Local Machine Zone’, that is, any web page loaded from a local source such as your hard disk or CD-ROM. The result is a warning message when such a page is loaded. To avoid this message you must place your web page into the secure ‘Internet Zone’.  To do this paste the following comment at the start of your html source:

 

© 2012 TechBubble Suffusion theme by Sayontan Sinha