Can Word display HTML code as formatted text?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello!

Basically, I'm brining in HTML code such as this from a database:

<P><STRONG>This is not working so great!</STRONG></P>
<BLOCKQUOTE dir=ltr style="margin-right: 0px">
<P><STRONG><U>Why isn't this working?</U></STRONG></P></BLOCKQUOTE>
<P dir=ltr><STRONG><U>Please Help! </U></STRONG></P>

However, I need Word to display the HTML doe as formatted text and not
display all the markup language. Is there a way to do this?

Thanks!
 
Hi Brent

If it's an HTML document, with an .htm or .html file extension, then Word
will recognize the file as HTML. So you'll see formatted HTML, not the
individual codes. If it's a Word document with some HTML code typed into the
document, then you'll see the HTML code.

Try File > Save As. In the Save as Type box, choose HTML. Then re-open the
document.

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
 
Hi, I am stuck with similar situation. Saving MS Word doc as html file is not helping.

The issue is , I am trying to retrieve a string from database, that string has html code
<ol>
<li><strong><u><em>number 1</em></u></strong></li>
<li><strong><u><em>number2</em></u></strong></li>
<li><strong><u><em>number3</em></u></strong></li>
</ol>
<p><a href="http://google.com">google.com</a></p>

Now when I am trying to display that string on MS Word, it just prints html tags as text.Actual behavior/meaning of those html tags should come, like the text number 1,number 2 ,number 3 should print as bold and google.com should come as hyper link on MS Word.
 
Back
Top