def textArea = {attrs, body ->
resolveAttributes(attrs)
attrs.id = attrs.id ? attrs.id : attrs.name
// Pull out the value to use as content not attrib
def value = attrs.remove('value')
if(!value) {
value = body()
} def escapeHtml = true
if (attrs.escapeHtml) escapeHtml = Boolean.valueOf(attrs.remove('escapeHtml')) out << "<textarea "
outputAttributes(attrs)
out << ">" << (escapeHtml ? value.encodeAsHTML() : value) << "</textarea>"
}