View Full Version : strip html
03-12-2006, 05:54 PM
Is there anyway I can strip all html between the < > tags with one function? Maybe replacing just <br> or <li> with vbcrlf
I don't want html that i have displayed to go into my database.
03-12-2006, 09:06 PM
Function RXreplace(rxPattern, myStr, repStr)
Set regEx = New RegExp
regEx.Pattern = rxPattern
regEx.IgnoreCase = True 'optional
RXreplace = regEx.Replace(myStr, repStr)
This function should be able to be used universally. However, as for the regex itself I am not well versed in that, so figuring out which pattern needs to be passed in will be up to you.
03-13-2006, 05:52 AM
hmm.. i don't know regexp either -- anyone out there that can help me edit this to just strip whatever is between html tags?
03-13-2006, 01:55 PM
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.