Question: I am using WordPress, and when I post some post data into my WordPress post, including some html code, as follows:

```
<code><div id="access"></div></code>

```

I want the code to be displayed, but the code is not displayed. 

How can I make it work?

Answer: 
You have to escape the `<` and `>` signs with their HTML entities:

```
&lt;div id="access"&gt;&lt;/div&gt;

```

Now, the browser doesn't render the code inside of the `<code>` blocks.
Try this plugin, [Preserve Code Formatting](http://wordpress.org/extend/plugins/preserve-code-formatting/), Wordpress will tend to strip some html tags.

Or you can character encode your html tags.