A Word to HTML Text Converter Mini-Application

How to convert Word-to-HTML the easy way If you are a site owner you probably been through this issue many times. Writing up a HTML copy in a document. Then fixing its textual errors. Adding in the HTML tags. Finding out that you have formatting issues.

How to convert Word-to-HTML the easy way

If you are a site owner you probably been through this issue many times. Writing up a HTML copy in a document. Then fixing its textual errors. Adding in the HTML tags. Finding out that you have formatting issues. It’s not a big deal. You can fix it manually in 10-15 minutes. Wouldn’t it be nice if you had a quick tool that would strip out illegal HTML attributes and integrate the basic tags into the page. It’s not a built-proof solution; nor is it meant to be. This tool was really developed to help a copy writer integrate their copy into a site. Instead of keeping it to myself I thought “why not share it with the community and with you guys”.

By the way it will probably have bugs. If you are using this tool and have a feature request please feel free to drop a line about it in our comments section below.

[swfobj src=”http://blog.everythingfla.com/wp-content/uploads/2012/11/textWordStripper1.swf” width=”550″ height=”400″ align=”center” allowfullscreen=”false” required_player_version=”10″]Convert your Word text into HTML ready text[/swfobj]

How does OUR Word-to-HTML tool work

.
If you leave the HTML combo box deselected when you paste copy into the text area it will automatically switch the tags that are not HTML legal attributes. When you select the HTML tag it will attempt to add HTML tags into the document as well. The rules are very, very basic right now. If there is a line break the application will check to see if the copy length is less then 100 characters; if so it will convert the line into a <h2> [Header] tag while all other copy would be converted into a <p> [paragraph] tag.

This tool works great not only on Word, but on any word processing application. The logic behind the tool is simple. It will probably continue to evolve over time. One of the best things you can do as a admin of a site is to find ways to shorten issues that you have on the site. If you notice a problem or something that takes too long to sort out, its always smart to stop for a second and fix it. In our case the fix took less time than writing up this article. The amount of code to create this script is exactly 48 lines with a lot of empty lines in between.

Why do you need OUR tool for Word-to-HTML converting?

It’s very simple. Unfortunately Word and word processing applications where not built to be very HTML compatible. Although its true that if you want to convert the full document, it’s not a big deal. In our case – and the case of many of you – you  just want to convert a small segment of the page or want to incorporate a small chunk of HTML into a built in the site system; such as in our case. This is our solution. We wanted to share it in case others want or need to use it as well.

Why learn with 02Geek?

If you like us join us. You can join our paid subscription or join our YouTube channel to get weekly FREE videos on development and overall web development. We will always help keep you moving forward. If you are  one of our premium users or not. Don’t forget that learning better is better. Our school is way more then just a word to HTML converter, learn how to create and build and program.

– go from a “zero to geek” | 02Geek.com – ©

Leave a Reply

Be the First to Comment!

Notify of
avatar

wpDiscuz