How to print a raw field value containing special characters in a node template? I have a text field which get filled with an URL, I am now trying to get the raw value of this field like "http://example.com", but every method I tried like


entity_metadata_wrapper 
field_get_items and field_view_value
field_extract_value


just returns the following " http:  example.com"

How can I pull it out right?

Edit:

Debug says:

[field_externer_link] =&gt; Array
    (
        [und] =&gt; Array
            (
                [0] =&gt; Array
                    (
                        [value] =&gt; /download/hier.jpg
                        [format] =&gt; 
                        [safe_value] =&gt; /download/hier.jpg
                    )


My node.tpl content: (Also tried methods mentioned above resulting in same output as you can see below)

$object = entity_metadata_wrapper('node', $node);
$externer = $object-&gt;field_externer_link-&gt;value();
echo '&lt;div class="externerlink&gt;&lt;a href="'.$externer.'"&gt;Download&lt;/a&gt;&lt;/div&gt;';


The output:

&lt;div class="externerlink"&gt;&lt;a href=" download hier.jpg"&gt;Download&lt;/div&gt;
Something like $row-&gt;field_link['und'][0]['value'] should give you the field. For security you should use  $row-&gt;field_link['und'][0]['safe_value'] but I don't know how the link will be affected in this.
Drupal has a nice function called debug(), which can output arrays, objects etc. as drupal_message. It helps to see how the arrays are built up ;)