Some weird shit – Microsoft Office to HTML

S

So, I run a website for a great group of people. It is a non-profit that rescues greyhounds.

Sometimes, they need to post something, so I get a file in Microsoft Word, and I need to get it HTML formatted.

Their website is based around Joomla, and I use the JCE rich text editor. In general, it works pretty good, but sometimes it is thrown for a loop by what Microsoft outputs as HTML.

An example:

<p style=”margin-left: 60px;”>1. &nbsp; Identify caring and responsible homes.</p>
<p style=”margin-left: 60px;”><span style=”line-height: 1.3em;”>2. &nbsp;&nbsp;</span><span style=”line-height: 1.3em;”>Re</span><span style=”line-height: 1.3em;”>scu</span><span style=”line-height: 1.3em;”>e</span><span style=”line-height: 1.3em;”> </span><span style=”line-height: 1.3em;”>s</span><span style=”line-height: 1.3em;”>i</span><span style=”line-height: 1.3em;”>ck</span><span style=”line-height: 1.3em;”>,</span><span style=”line-height: 1.3em;”> </span><span style=”line-height: 1.3em;”>i</span><span style=”line-height: 1.3em;”>n</span><span style=”line-height: 1.3em;”>j</span><span style=”line-height: 1.3em;”>u</span><span style=”line-height: 1.3em;”>r</span><span style=”line-height: 1.3em;”>e</span><span style=”line-height: 1.3em;”>d</span><span style=”line-height: 1.3em;”> </span><span style=”line-height: 1.3em;”>an</span><span style=”line-height: 1.3em;”>d</span><span style=”line-height: 1.3em;”> </span><span style=”line-height: 1.3em;”>abandone</span><span style=”line-height: 1.3em;”>d </span><span style=”line-height: 1.3em;”>g</span><span style=”line-height: 1.3em;”>r</span><span style=”line-height: 1.3em;”>eyhound</span><span style=”line-height: 1.3em;”>s.</span></p>
<p style=”margin-left: 60px;”>3. &nbsp; Seek to return lost greyhounds to their owners.</p>
<p style=”margin-left: 60px;”>4. &nbsp; Teach the principles of kindness and humane dog care.</p>
<p style=”margin-left: 60px;”>5. &nbsp; Promote birth control by neutering/spaying all intake animals.</p>
<p style=”margin-left: 60px;”>6. &nbsp; Provide pre-adoption health services.</p>
<p style=”margin-left: 60px;”>7. &nbsp; Provide residential foster care to assist greyhounds in becoming acclimated to a home environment.</p>

Note the second line item, it is supposed to be :

  1.  Rescue sick, injured, and abandoned greyhounds.

It has become some gawdawful bunch of span’s that make no sense whatsoever.

Sigh, I get to clean this mess up…

About the author

geoffand

Add comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

By geoffand

Subscribe to Tralfaz via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 4 other subscribers
September 2013
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Spam Blocked