Trim function

Hi

I have a html template and i want to insert a deeplink tag like this

<a href='{deeplink}'>nice name</a>

because i want an output like this

<a href='http://www.url.com'>nice name</a>

When i do this the out put is like this

<a href='<strong>Deeplink</strong>: <a href="http://www.url.com" onclick="window.open(this.href,'_blank','location=1,resizable=1,status=1,scrollbars=1,toolbar=1,menubar=1');return false">http://www.url.com</a><br />'>nice name</a>

How can i trim this code to get the results i mentioned before

Greetings
Jurgen

Are you using a scripting language?

If so
Which one?
Can you post the code that does the current change?