Hello,
I'm using the following Rexex function to strip HTML tags from text:
return Regex.Replace(t ext, "<.*?>", String.Empty);
If I set text manually to something like "<b>test</b>" then it correctly returns "test".
But ... if I have a field in the database with the same input value, it returns it unmodified.
I'm guessing that the DB value might be Unicode? If so, how can I get the regex expression to work?
Also, is there a way the regex expression could be extended to also cover Encoded Html?
Thanks!
I'm using the following Rexex function to strip HTML tags from text:
return Regex.Replace(t ext, "<.*?>", String.Empty);
If I set text manually to something like "<b>test</b>" then it correctly returns "test".
But ... if I have a field in the database with the same input value, it returns it unmodified.
I'm guessing that the DB value might be Unicode? If so, how can I get the regex expression to work?
Also, is there a way the regex expression could be extended to also cover Encoded Html?
Thanks!
Comment