[REBOL] Re: Validating HTML
From: joel:neely:fedex at: 26-Feb-2002 6:48
Hi, JM,
http://tidy.sourceforge.net/
has been around for quite some time. Unless you have an absolute
need to embed the cleanup code in a larger function, this would
save some wheel-reinventing...
-jn-
> JM wrote:
> > Does anybody have some simple code to validate HTML pages, mainly proper
> tag nesting?
>
--
; sub REBOL {}; sub head ($) {@_[0]}
REBOL []
# despam: func [e] [replace replace/all e ":" "." "#" "@"]
; sub despam {my ($e) = @_; $e =~ tr/:#/.@/; return "\n$e"}
print head reverse despam "moc:xedef#yleen:leoj" ;