It does assume that there are no other HTML tags between the tags.