html cleanup
-
Hi all, i inserted my data into the database with the html tags. I am trying to show those data in the gridveiw but without html tags. Is it possible to do this ? Any Ideas ??
suchita
You obviously need to strip the html elements either going to the or coming from the database. Use a RegEx to find and remove them from the text. What issues are you encountering?
I know the language. I've read a book. - _Madmatt
-
You obviously need to strip the html elements either going to the or coming from the database. Use a RegEx to find and remove them from the text. What issues are you encountering?
I know the language. I've read a book. - _Madmatt
when i was showing in the datagrid, because of some html tags, the starting text is not aligned. Some are left aligned of the cell, while some are right aligned and some are center. I want the uniformity in all when they are displayed in the datagrid.
suchita
-
You obviously need to strip the html elements either going to the or coming from the database. Use a RegEx to find and remove them from the text. What issues are you encountering?
I know the language. I've read a book. - _Madmatt
-
Just that, a rant. The response of Chuck Norris can do it is spot on though. :-D
I know the language. I've read a book. - _Madmatt
-
when i was showing in the datagrid, because of some html tags, the starting text is not aligned. Some are left aligned of the cell, while some are right aligned and some are center. I want the uniformity in all when they are displayed in the datagrid.
suchita
If you want uniformity in alignment then make it happen. You are in complete and absolute control of the html that is rendered.
I know the language. I've read a book. - _Madmatt
-
Hi all, i inserted my data into the database with the html tags. I am trying to show those data in the gridveiw but without html tags. Is it possible to do this ? Any Ideas ??
suchita
I found this Regex to detect HTML Tags. \<\/?\w+\>* Literal <
- Literal /,zero or one repetations
- Alphanumeric, one or more repetitions
- Literal >
Which Matches to almost HTML tags, Just replace matched string with Empty of "" String. and you will get plain text as a OUTPUT I think. [Add] See my recent TIP[^] on CP for that. [/Add]
Regards, Hiren. Microsoft Dynamics CRM
My Recent Article: - Way to know which control have raised PostBack[^]
modified on Wednesday, December 15, 2010 8:52 AM
-
I found this Regex to detect HTML Tags. \<\/?\w+\>* Literal <
- Literal /,zero or one repetations
- Alphanumeric, one or more repetitions
- Literal >
Which Matches to almost HTML tags, Just replace matched string with Empty of "" String. and you will get plain text as a OUTPUT I think. [Add] See my recent TIP[^] on CP for that. [/Add]
Regards, Hiren. Microsoft Dynamics CRM
My Recent Article: - Way to know which control have raised PostBack[^]
modified on Wednesday, December 15, 2010 8:52 AM