<span> tags and Word, what is word thinking!??!?

G

gooderthanyou

I have a Rich text editor which works fine, when someone is done with
the online editing they can download what they typed into a word
document. The RTE is using <span> and <div> tags and I cannot change
it, valid html though, example:

<div style="text-align: center;">
CENTER</div>

This is what appears in word and on an html page (instead of actually
centering CENTER) but beneath the scenes; the code reads:

&lt;div style=&quot;text-align: center;&quot;&gt;<br>
CENTER&lt;/div&gt;

&lt = <
&quot = "
&gt = >

Why is this happening??? Anyone run into something similiar? Thanks
 
J

John McGhie [MVP - Word and Word Macintosh]

Looks like the RTE is honouring the line-ender when you didn't want it to.
A line ending is significant in rich text, and is a Break in HTML.


I have a Rich text editor which works fine, when someone is done with
the online editing they can download what they typed into a word
document. The RTE is using <span> and <div> tags and I cannot change
it, valid html though, example:

<div style="text-align: center;">
CENTER</div>

This is what appears in word and on an html page (instead of actually
centering CENTER) but beneath the scenes; the code reads:

&lt;div style=&quot;text-align: center;&quot;&gt;<br>
CENTER&lt;/div&gt;

&lt = <
&quot = "
&gt = >

Why is this happening??? Anyone run into something similiar? Thanks

--

Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.

John McGhie <[email protected]>
Microsoft MVP, Word and Word for Macintosh. Business Analyst, Consultant
Technical Writer.
Sydney, Australia +61 (0) 4 1209 1410
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top