One of WordPress’s unique features is the ability to apply block formatting and punctuation styling through the buit–in
wptexturize() functions, respectively. However, this behavior fails on some markup combinations. The simple–looking
"<strong>text wrapped with strong emphasis tag, with quotes outside</strong>" replaces the two instances of double–quotes with opening–double–quotes (“ — escaped in HTML as “) instead of the typographically correct “ … ”. A simple workaround is to type the character entity itself, a simple task for those fairly familiar with semantic markup and typography.
On some occasions, you may want to disable the pretty formatting (
wptexturize()) for an entire post; this is where Alex’s wp–unformatted (Link to his WP 1.2 plugins) comes handy. But what if you want to disable
wptexturize() formatting for a sentence (or phrase, or snippet of text), inline?
A simple workaround: Use semantics! Most probably, it is a snippet of code you want untouched; then just wrap it with the
<code> tag. You can also use
<script>. But what if no tag fits the purpose? Wrap it with these comments (really, a hack!) instead:
<!-- <pre> -->raw text, unformatted<!-- </pre> -->, where “raw text, unformatted” is the string of text you want untouched. Valid markup comments, simple hack, and it works.