Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Intellisense-like site scraping - Converting "a href"'s to something else?

    I want to automatically replace all link tags with a custom function.

    <a href="http://www.codingforums.com/">Coding Forums</a>

    to

    <? link('codingforums.com','Coding Forums'); ?>

    Can anyone point me to a tutorial or help me through this?

    Thanks

  • #2
    Regular Coder Troy297's Avatar
    Join Date
    Oct 2006
    Location
    Earth
    Posts
    314
    Thanks
    10
    Thanked 0 Times in 0 Posts
    You mean like have a php code change them dynamically? Or just replace all instances of "<a href=></a>" to your link thing?

    If you just mean replace then use the notepad "replace" under the edit menu.
    Everyone hears what you say, friends listen to what you say, best friends listen to what you don't say.
    Radio DJ Panel v3 - It's Here!

  • #3
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes, I need PHP to change them for me, so if I place a normal link in my HTML, it will convert it to what I put in the OP


  •  

    Posting Permissions

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