I often use WP-Syntax plugin for syntax highlighting. When i used angled brackets or ‘&’ symbol or something like that i recieved next garbage:
$ echo fail 2>&1 >/dev/null |
It happened because wp-syntax tried to escape special symbols, but <pre> tag says wordpress to show symbols as it passed into that tag. Early, before publishing i switched from visual into text mode and changed all that garbage into what i want. But solution is to add escaped option into <pre> tag, <pre lang=”bash” escaped=”true”>, now same block will look like i expected:
$ echo congrat 2>&1 >/dev/null |
Enjoy!