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

[REBOL] Re: strip tags

From: arolls:idatam:au at: 5-Nov-2001 16:42

Rebol is great for reducing the need to repeat yourself. It would save some keys if you wrote this instead: foreach [search-string replace-string][ "<a href" "*** " ; retain links "</" "<" "<p>" "^/" "<h1>" "^/^/" "<h2>" "^/^/" "<h3>" "^/^/" "<h4>" "^/^/" "<li>" "* " "<hr>" "^/----------------------------------^/" ][ replace/all my-area/text search-string replace-string ]