[REBOL] Re: Tags, anyone?
From: chris:ross-gill at: 16-Apr-2002 8:29
Hi Ammon,
> Has anyone delt with the Tag! datatype? I am trying to do some XML stuff,
> & I figured that REBOL probably has some neat things for dealing with tags
> seems on how they have a tag! datatype. I didn't see much in RCUG 2.3 on
> tags so I thought I might ask someone who knows. ;-) So what's neat about
> tags?
I like 'build-tag. Here's a one-liner I have to clean bad markup. It pulls
apart a tag, 'tag and makes it into an editable block, 'blk and back into an
xml tag. Easily extensible.
tag: <x val = 123> build-tag blk: to-block replace/all tag "=" " "
- Chris