BEGIN s := '

The cat sat on the mat.

'; xhtml := ''; tag := ''; FOR i IN 1..10 LOOP tag := substring(s from ''); s := replace(s, tag, ''); END LOOP; xhtml := s; RETURN xhtml;