Skip to content
Snippets Groups Projects
Commit f123d92b authored by Peter Rotich's avatar Peter Rotich
Browse files

Add export routine to TextareaField

Sanitize textarea content on export
parent 61d042e0
No related branches found
No related tags found
No related merge requests found
......@@ -601,6 +601,11 @@ class TextareaField extends FormField {
else
return Format::htmlchars($value);
}
function export($value) {
return (!$value) ? $value : Format::html2text($value);
}
}
class PhoneField extends FormField {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment