Hi Alan, > link: [some [thru "<a href=" copy lnk to ">" (append text lnk)]] > > ... but is there any way to add this to the converter below?
Some modifications. I changed link to remove the some. I embed link inside html-rules. So it will have the first go at the tag. If it is a link tag it continues on, if it is not the previous html-rule logic comes into play. link: ["<a href=" copy lnk to ">" (append text lnk)] html-rules: [ to "<" some [ link | ["<" thru ">"] | copy txt to "<" (append text txt) ] ] Your next problem might be to make the link rule be able to handle the case where the tag has more attributes than just the HREF. If you need to do this, then have a look at: http://www.codeconscious.com/rebsite/rebol-library/tag-tool.r In particular the NEW-TAG rule and its supporting rules. A demonstration of what this script does is: >> import-tag <a href="http://www.codeconscious.com"> == [a href "http://www.codeconscious.com"] Regards, Brett. -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.