Trim function


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=''>nice name</a>

When i do this the out put is like this

<a href='<strong>Deeplink</strong>: <a href="" onclick=",'_blank','location=1,resizable=1,status=1,scrollbars=1,toolbar=1,menubar=1');return false"></a><br />'>nice name</a>

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


Are you using a scripting language?

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