Aug 31, 2005 #1 meckeard Programmer Aug 17, 2001 619 US All, I store data with HTML tags and need to remove a leading <br> tag if present. I tried a few things, also used the Server.HtmlDecode with no luck. How can I do this? Thanks.
All, I store data with HTML tags and need to remove a leading <br> tag if present. I tried a few things, also used the Server.HtmlDecode with no luck. How can I do this? Thanks.
Aug 31, 2005 #2 DotNetGnat Programmer Mar 10, 2005 5,548 IN try replace() functions.. Replace(yourfield, "<br>","") -DNG Upvote 0 Downvote
Aug 31, 2005 #3 DotNetGnat Programmer Mar 10, 2005 5,548 IN or this... Replace(yourfield, chr(10),"") -DNG Upvote 0 Downvote
Aug 31, 2005 Thread starter #4 meckeard Programmer Aug 17, 2001 619 US But wouldn't this replace all instances of a break tag? I only need one if it's at the beginning of my string. Upvote 0 Downvote
But wouldn't this replace all instances of a break tag? I only need one if it's at the beginning of my string.
Aug 31, 2005 #5 DotNetGnat Programmer Mar 10, 2005 5,548 IN oh ok...use left function... Replace(left(yourfield,1), chr(10),"") -DNG Upvote 0 Downvote