added double quote escaping in attributes, respect newline in piped text blocks