SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: trim function

  1. #1
    SitePoint Member
    Join Date
    Nov 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    trim function

    Hi

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

    Code:
    <a href='{deeplink}'>nice name</a>
    because i want an output like this

    Code:
    <a href='http://www.url.com'>nice name</a>
    When i do this the out put is like this

    Code:
    <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

  2. #2
    SitePoint Evangelist
    Join Date
    Jun 2007
    Location
    North Yorkshire, UK
    Posts
    483
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you using a scripting language?

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


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •