replace multiple '\n' and '\t'  in tag with a single space.
是这个意思？