HTML is more of a restrictive form of tagging than XML, so since XSL was written to handle XML, it should have no problem handling the HTML.
John. _____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Moshe Tapnack Sent: May 5, 2005 4:23 AM To: [email protected] Subject: RE: [ASP] Strip HTML tags Hi Shawn Thanks for the reply. I dont think it will be strict HTML, so i guess XSL is out. the bigger than / smaller than is quite an issue. not that is actually comes up much... thanks again Moshe -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Shawn K. Hall Sent: Thursday, May 05, 2005 10:49 AM To: [email protected] Subject: RE: [ASP] Strip HTML tags Hi Moshe, > i'm looking to strip HTML tags, and have found a function > that uses regular expressions at > www.4guysfromrolla.com/webtech/042501-1.shtml > was just wondering if anything has other ideas This really is the best method. The only time you'll have issues is when you have less than and greater than signs within the attribute values, which is something very difficult to deal with in a simple programmatic manner. Alternatively you can use an XSL transformation and just enumerate children for their values. It's more code and requires strict html/xhtml. Regards, Shawn K. Hall http://12PointDesign.com/ http://ReliableAnswers.com/ --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- _____ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . [Non-text portions of this message have been removed] --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- _____ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> * Your use of Yahoo! Groups is subject to the Yahoo! <http://docs.yahoo.com/info/terms/> Terms of Service. [Non-text portions of this message have been removed] --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
