diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2012-05-15 18:25:37 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2012-05-15 18:25:37 -0700 |
| commit | 49fc33db77d202f175a4d8a33e3eab1e52080a4d (patch) | |
| tree | 9ce8e9a30a35ac581facf78479d4aee27fe89942 /httemplate/elements/tr-fixed.html | |
| parent | 1ae273f69e5bf2b46c9c5fcd990ad923770ace56 (diff) | |
read only access to message templates, RT#1`7477
Diffstat (limited to 'httemplate/elements/tr-fixed.html')
| -rw-r--r-- | httemplate/elements/tr-fixed.html | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/httemplate/elements/tr-fixed.html b/httemplate/elements/tr-fixed.html index f358343dd..dd07d90b6 100644 --- a/httemplate/elements/tr-fixed.html +++ b/httemplate/elements/tr-fixed.html @@ -13,13 +13,15 @@ my %opt = @_; my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : ''; my $value = $opt{'formatted_value'} || $opt{'curr_value'} || $opt{'value'}; -#compatibility with select-table and friends -if ( $opt{'multiple'} ) { - $value = [ split(/\s*,\s*/, $value) ] if !ref $value; - $value = join('<BR>', map {encode_entities($_)} @$value); -} -else { - $value = encode_entities($value) + +unless ( $opt{'noescape'} ) { + #compatibility with select-table and friends + if ( $opt{'multiple'} ) { + $value = [ split(/\s*,\s*/, $value) ] if !ref $value; + $value = join('<BR>', map {encode_entities($_)} @$value); + } else { + $value = encode_entities($value) + } } </%init> |
