[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 ]







