Got more questions? Find advice on: ASP | SQL | XML | Windows
Welcome to RegexAdvice Sign in | Join | Help

Re: Help with removing unwanted attributes from anchors (hyperlinks)

  •  05-14-2008, 6:36 AM

    Re: Help with removing unwanted attributes from anchors (hyperlinks)

    Dear God (ddrudik)

    I need to do something very similar to Nick but am having difficulty adapting your code.  I wonder if you could cast your knowledgable eyes over my requirements?

    Input string
    <div>test</div><p>Paragraph text <a href="someurl.com">link text</a></p>

    Required output string
    <div>test</div><p>Paragraph text link text</p>

    So basically I need to remove the start and end anchor tags but leave the link text and any other html intact.

    Thanks in advance for any help you can give me

    Rob

    Filed under:
View Complete Thread