473,387 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Reg:free text box

vinoth82
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
Mar 9 '09 #1
1 1322
Frinavale
9,735 Expert Mod 8TB
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
Mar 9 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: chotiwallah | last post by:
i have a little database driven content managment system. people can load up html-docs. some of them use ms word as their html-editor, which resultes in loads of "class" and "style" attributes -...
1
by: praba kar | last post by:
Dear All, I have doubt regarding headers in cgi programming. If I gives "Content-Type:text/plain" then I try to print html contents. Is right or wrong after giving content-type: text/plain?...
5
by: Ken Chesak | last post by:
Perl scipt is formatting text for HTML page. It changes things like an & to &amp. But should not change &nbsp. It uses \ as an escape character. So \&nbsp will become &nbsp. The final results...
4
by: Aristotle | last post by:
Could you please help me out with regular expressions. I'm trying to write a perl script that proccesses some text, and i'm stuck at the following: need to remove from the text below all words...
5
by: Henok Girma | last post by:
Hello Gurus, I wanted to have a very simple, strict regular expression validator for a phone field. the only valid format is (XXX) XXX-XXXX where X is a digit I have the following but it always...
5
by: Marty McDonald | last post by:
I'm trying to manually edit the resistry so Asp.Net can write to the app log. If my web app is named "TestApp", wouldn't I just create a key called "TestApp" under...
5
by: Edwin Knoppert | last post by:
I have registered and i expected some reg code, not! The balloon keeps appearing, how to get rid of that? vwd-express
8
by: Roomy | last post by:
Guys, I'd love if any of you can help me with this one. I need a script that will take out the words Error, Warning, and Aborted from a 12mb text file and into a new text file after running the...
1
by: black_13 | last post by:
are there any python modules for manipulation of .reg files producted by the win32 prog "reg". thanks. black_13
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.