parseTags function

Parses tags in the body section