doc attr folding and comment tag stripping
always call remove_comment_tags when needed