You are here: Re: why not use MS Word to create web pages? « HTML « IT news, forums, messages
Re: why not use MS Word to create web pages?

Posted by Don on 11/12/05 09:02

JDS <jeffrey@example.invalid> wrote in
news:pan.2005.11.12.02.57.32.351226@example.invalid:

> On Sat, 12 Nov 2005 00:47:50 +0000, code_wrong wrote:
>
>> processing .. why not just save a document as an htm file and then
>> post it onto a web site?
>
> It may be an acceptable start into learning how the web works in a
> very general way. However there are plenty of tools available that
> would be better. Even OpenOffice produces beter HTML code, is free,
> and is basically WYSIWYG. (Not that I'm recommending OO.org for web
> development, but if you *must* use a word processor for this task...)
>
> (...hmm. I take it back. I just tested OO.org out, and it looks like
> OO.org is actually not so bad at all, but that;s another story...)
>
> In any case, here is my real world example of why not to use MS Word.
> This example may seem contrived, and it certainly won't affect
> everyone, but it is a real example that I actually ran across today.
>
> I built a CMS for a client. The CMS has a WYSIWYG widget in place of
> a <textarea> to edit the content. The client cut-n-pasted the HTML
> directly from Word into the CMS. Click Submit/update, and poof! It
> exploded. Well, not literally, but the page, which is generated by
> PHP, could not be displayed even to allow it to be edited again.
>
> The problem stems from the "HTML" that Word generated. MS Word uses
> XML gobbeldy gook unnecewssarily to, well, I don't know what it is
> supposed to do. In any case, the "<?" opening of the XML stuff broke
> the PHP page.
>
> Sure, I could design in some better error-checking and parsing of the
> submitted data. Sure, I could do something that allows the data to go
> in untouched. But the point is that MS Word does not generate valid,
> usable HTML.
>
> later...


The solution for this is to have the client:
1) Copy and paste from Word and into NotePad
2) Copy and paste from within NotePad to the CMS page.
3) Clean code with all formatting removed.

MS-anything to MS-anything carries the bloated baggage.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация