Skip to content

Commit 2c56b7a

Browse files
committed
Added optional HTML support for column headers (for easier special Unicode characters).
1 parent 81318b2 commit 2c56b7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

support/flex_forms.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ protected function ProcessField($num, &$field, $id)
905905
foreach ($field["cols"] as $num2 => $col)
906906
{
907907
?>
908-
<th<?php foreach ($colattrs[$num2] as $key => $val) echo " " . $key . "=\"" . htmlspecialchars($val) . "\""; ?>><?php echo htmlspecialchars(self::FFTranslate($col)); ?></th>
908+
<th<?php foreach ($colattrs[$num2] as $key => $val) echo " " . $key . "=\"" . htmlspecialchars($val) . "\""; ?>><?php echo (isset($field["htmlcols"]) && $field["htmlcols"] ? self::FFTranslate($col) : htmlspecialchars(self::FFTranslate($col))); ?></th>
909909
<?php
910910
}
911911
?>
@@ -1001,7 +1001,7 @@ protected function ProcessField($num, &$field, $id)
10011001
foreach ($row as $col)
10021002
{
10031003
?>
1004-
<div<?php foreach ($headcolattrs as $key => $val) echo " " . $key . "=\"" . htmlspecialchars($val) . "\""; ?>><?php echo htmlspecialchars(self::FFTranslate(isset($field["cols"][$num2]) ? $field["cols"][$num2] : "")); ?></div>
1004+
<div<?php foreach ($headcolattrs as $key => $val) echo " " . $key . "=\"" . htmlspecialchars($val) . "\""; ?>><?php echo (isset($field["htmlcols"]) && $field["htmlcols"] ? self::FFTranslate(isset($field["cols"][$num2]) ? $field["cols"][$num2] : "") : htmlspecialchars(self::FFTranslate(isset($field["cols"][$num2]) ? $field["cols"][$num2] : ""))); ?></div>
10051005
<div<?php if (isset($colattrs2[$num2])) { foreach ($colattrs2[$num2] as $key => $val) echo " " . $key . "=\"" . htmlspecialchars($val) . "\""; } ?>><?php echo $col; ?></div>
10061006
<?php
10071007
$num2++;

0 commit comments

Comments
 (0)