Luiz Henrique de Figueiredo wrote:
If you don't know the tag name, you can use local n,c = string.match(text,"<(%w+)>(.-)</%1>")
-- Shmuel