word press stripping xml code

Posted: 2012-03-21 in My Opinion

UPDATE:

WordPress supports code snippets now.

http://stackoverflow.com/questions/81338/how-to-blog-code-at-wordpress-com

 

Old Entry:

If your like me then you will occasionally post xml code in your blog. The problem is that word press strips XML from comments and post.

If you can change your wordpress files then here’s a bit of reading to help HooFoo.net

If you can’t then simply replace all the “<” with the html code equivalent ” &lt;” this stops wordpress and still publishes your xml, for now..

Be careful when reediting post. Actually to be safe copy the text before you hit post or publish..

I’m sure wordpress will be on this soon.

Cheers

Lachlan

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s