Extract valid tag body characters into a separate variable