SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Aug 2004
    Location
    Canada
    Posts
    730
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    <a> attributes regexp

    how about getting the attributes of the a tag? href and title and the innerhtml (actually the innerhtml has space on both ends)
    Compare bible texts (and other tools):
    TheWheelofGod

  2. #2
    Non-Member Girish singh's Avatar
    Join Date
    Jan 2011
    Location
    india,noida
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    java script provides better solution of anchor tag,href ragular expression.java script code is as follows:
    Array
    (
    [0] => Array
    (
    [0] => <a href="http://yahoo.com">Yahoo</a>
    [1] => http://yahoo.com
    [2] => Yahoo
    )
    [1] => Array
    (
    [0] => <a href="http://google.com">Google</a>
    [1] => http://google.com
    [2] => Google
    )
    )


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
  •