diff --git a/lib/WebGUI/Form.pm b/lib/WebGUI/Form.pm
index 26cd0364d..53de0fb65 100644
--- a/lib/WebGUI/Form.pm
+++ b/lib/WebGUI/Form.pm
@@ -76,6 +76,13 @@ sub _fixQuotes {
return $value;
}
+#-------------------------------------------------------------------
+sub _fixSpecialCharacters {
+ my $value = shift;
+ $value =~ s/\&/\&\;/g;
+ return $value;
+}
+
#-------------------------------------------------------------------
=head2 checkbox ( hashRef )
@@ -633,8 +640,6 @@ sub hiddenList {
sub HTMLArea {
my ($output, $value);
$output = '';
- $value =~ s/\\<\;/g;
- $value =~ s/\>/\>\;/g;
if ($session{setting}{richEditor} eq "edit-on-pro") {
$output .= '';
}
$output .= '
';
+ WebGUI::International::get(171).'" style="font-size: 8pt;">'."
\n";
$output .= textarea({
name=>$_[0]->{name},
value=>$_[0]->{value},
@@ -1121,6 +1126,7 @@ sub template {
sub text {
my ($size, $maxLength, $value);
$value = _fixQuotes($_[0]->{value});
+ $value = _fixSpecialCharacters($value);
$maxLength = $_[0]->{maxlength} || 255;
$size = $_[0]->{size} || $session{setting}{textBoxSize} || 30;
return '{rows} || $session{setting}{textAreaRows} || 5;
$columns = $_[0]->{columns} || $session{setting}{textAreaCols} || 50;
+ $value = _fixSpecialCharacters($_[0]->{value});
+ $value =~ s/\\<\;/g;
+ $value =~ s/\>/\>\;/g;
return '';
+ $wrap.'" '.$_[0]->{extras}.'>'.$value.'';
}
#-------------------------------------------------------------------
diff --git a/lib/WebGUI/HTMLForm.pm b/lib/WebGUI/HTMLForm.pm
index 982a24ee9..ffe51c507 100644
--- a/lib/WebGUI/HTMLForm.pm
+++ b/lib/WebGUI/HTMLForm.pm
@@ -83,13 +83,6 @@ use WebGUI::SQL;
=cut
-#-------------------------------------------------------------------
-sub _fixQuotes {
- my $value = shift;
- $value =~ s/\"/\"\;/g;
- return $value;
-}
-
#-------------------------------------------------------------------
sub _subtext {
my $output;
diff --git a/lib/WebGUI/Wobject/MailForm.pm b/lib/WebGUI/Wobject/MailForm.pm
index 337b5d76d..adda5d2f5 100755
--- a/lib/WebGUI/Wobject/MailForm.pm
+++ b/lib/WebGUI/Wobject/MailForm.pm
@@ -12,6 +12,7 @@ package WebGUI::Wobject::MailForm;
use strict;
use Tie::CPHash;
+use WebGUI::Form;
use WebGUI::HTMLForm;
use WebGUI::Icon;
use WebGUI::International;
@@ -412,7 +413,7 @@ sub _fieldAdminIcons {
sub _textSelectRow {
my ($self, $textName, $textLabel, $textValue, $textMaxLength, $selectName, $selectOptions, $selectValue) = @_;
my $output;
- $textValue = WebGUI::HTMLForm::_fixQuotes($textValue);
+ $textValue = WebGUI::Form::_fixQuotes($textValue);
my $textSize = $session{setting}{textBoxSize};
$output = '';