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

[REBOL] Re: strip tags

From: mh983:y:ahoo at: 4-Nov-2001 19:55

Here's a parse version of stripping html tags from strings. I liked the replace/all example as it's very straightforward. If you have a string of html, how do you make it "markup" so you can use replace/all? Anyway, here's the parse way that I used:
>>test: "<Person><Name>Homer Simpson</Name></Person>"
== "<Person><Name>Homer Simpson</Name></Person>"
>>parse test [any [to "<" begin: thru ">" ending: (remove/part begin ending) :begin]]
== true