Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Removing Tags

 [1/5] from: carlos:lorenz::gmail at: 22-Aug-2007 10:37


Hi list, wich is the most efficient way of getting rid of the tags inside the string bellow? a: "<p>something here</p>" thanks -- Carlos Lorenz www.revistaeletronica.com.br Unidade Lorenz Ltda (11) 4034 1971

 [2/5] from: ale870:g:mail at: 22-Aug-2007 15:56


hello, see "parse" function. *page: read http://hq.rebol.net parse page [thru <title> copy title to </title>] print title* --Alessandro On 8/22/07, Carlos Lorenz <carlos.lorenz-gmail.com> wrote:
> Hi list, > wich is the most efficient way of getting rid of the tags inside the
<<quoted lines omitted: 10>>
> To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject.
-- --Alessandro

 [3/5] from: Tom::Conlin::gmail::com at: 22-Aug-2007 8:50


Carlos Lorenz wrote:
> Hi list, > > wich is the most efficient way of getting rid of the tags inside the string > bellow? > > a: "<p>something here</p>" > > thanks >
foreach item load/markup a[ if not tag? item [print item] ]

 [4/5] from: anton:wilddsl:au at: 23-Aug-2007 1:30


Here's a simple start. We've had discussions like this on the email list many times, so it's worth searching to find those threads. str: "<a>something here</a>" parse/all str [ any [ to "<" tag-start: thru ">" tag-end: (remove/part tag-start tag-end) :tag-start ] ] Anton.

 [5/5] from: moliad::gmail::com at: 23-Aug-2007 2:20


this is a simple one-liner: a: "<p>something here</p> <BR> and here" to-string remove-each i load/markup a [tag? i] == something here and here -MAx On 8/22/07, Anton Rolls <anton-wilddsl.net.au> wrote:

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted