PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a php file that exports a plain text file. If I open the text file in a notepad it shows correctly. When I open it in MS Word it looses all the tags. Is there a additional header or something to get Word to stop trying to render the tags & display as plain text?
You want Word to show the tags but not render them?
Either of the content type used Word is likely handling the tags...if you don't need the tags rendered but just wish to show their source...why don't you use htmlspecialchars() - this way they are not interpreted by Word or IE or whatever but shown as regular tag soup.