Reg:free text box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vinoth82
    New Member
    • Feb 2009
    • 10

    Reg:free text box

    In free textbox while copy an document and paste in it. before inserting in DB. i need to remove href,or link any thing init . can u give any suggestion for it .


    eg:http://wiki.developers.facebook.com . if for any url i am having link. it should remove the link and save in DB using C#.net
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    I would strongly recommend using regular expressions in your solution.

    Once you have created a regular expression string (regex) that describes what you're looking to replace, you can use the Replace method to remove any potentially harmful content before it is inputted into the database.

    -Frinny

    Comment

    Working...