Well, that's kind of what I was asking. If there was a specific tag I didn't know about that would just strip any html element out of string.. but that's why I mentioned i'd also want to grab the URL out of ahref tag so i wasn't sure how it'd work since a blanket HTML tag removal would probably take out the link.
I was leaning towards using a RegEx and just declaring what I want stripped out. On Wed, Nov 16, 2011 at 4:32 PM, Matthew Woodward <[email protected]>wrote: > On Wed, Nov 16, 2011 at 2:25 PM, Jason King <[email protected]>wrote: > >> Hi Matthew... >> >> The string isn't necessarily all html. This is for a messaging app, and >> people can include html elements for formatting. >> > > It sounds like you're going to need to just use a regex to get > specifically what you want out of the string. > > Is it only hrefs you're looking for and you want to strip the rest? I'm > still unclear on exactly what your'e trying to accomplish here. > > -- > Matthew Woodward > [email protected] > http://blog.mattwoodward.com > identi.ca / Twitter: @mpwoodward > > Please do not send me proprietary file formats such as Word, PowerPoint, > etc. as attachments. > http://www.gnu.org/philosophy/no-word-attachments.html > > -- > official tag/function reference: http://openbd.org/manual/ > mailing list - http://groups.google.com/group/openbd?hl=en > -- official tag/function reference: http://openbd.org/manual/ mailing list - http://groups.google.com/group/openbd?hl=en
