Title: python-wordpress-xmlrpc: html content getting escaped
Last modified: August 22, 2016

---

# python-wordpress-xmlrpc: html content getting escaped

 *  [tomslee](https://wordpress.org/support/users/tomslee/)
 * (@tomslee)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/python-wordpress-xmlrpc-html-content-getting-escaped/)
 * I am using python-wordpress-xmlrpc to post content to a wordpress blog, the [documentation](http://python-wordpress-xmlrpc.readthedocs.org/en/latest/examples/posts.html)
   is good except that it only shows trivial plain text content, as in
 * `post.content = ‘This is a wonderful blog post about XML-RPC.’
 * If I use HTML markup in content then the HTML tags get escaped (converted to “&
   lt ;” etc), and so do not display properly. Can anyone suggest a way to avoid
   this?
 * The only previous question I can see on the topic is [this one](https://wordpress.org/support/topic/posting-html-content-via-xml-rpc)
   from five years ago, which seems restricted to a bug in a specific version of
   lxml (and which must be fixed in new versions of WordPress).

Viewing 1 replies (of 1 total)

 *  [fun4uoc](https://wordpress.org/support/users/fun4uoc/)
 * (@fun4uoc)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/python-wordpress-xmlrpc-html-content-getting-escaped/#post-5876570)
 * Just figured it out tomslee.
 * It’s three double quotes before and after your html code.
 * Try the following.
 *     ```
       post.content = """
       <all your html code here>
       blah
       blah
       blah
   
       """
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘python-wordpress-xmlrpc: html content getting escaped’ is closed to new
replies.

 * 1 reply
 * 2 participants
 * Last reply from: [fun4uoc](https://wordpress.org/support/users/fun4uoc/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/python-wordpress-xmlrpc-html-content-getting-escaped/#post-5876570)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
