I'm running Craft Pro 2.3.2640.
Here is the code:
<span>{{ siteUrl }}</span>
Here is the output:
//localhost:3001/%3C/span%3E
The opening tag stays intact.
I am also struggling to use this variable with functions like "replace" when I need to parse the referral url.