Skip to content

Commit

Permalink
Merge pull request #52 from sectsect/feature/br-tag-in-table
Browse files Browse the repository at this point in the history
feat: allow HTML <br /> tag in data table in Plugin option page
  • Loading branch information
sectsect authored Jun 19, 2024
2 parents e1b2361 + 92b257a commit bb8d398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/class-recursivetable.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ private static function array_to_html_table_recursive( array $arr ): string {
return $str;
}
$value = $val;
$str .= '<span>' . htmlspecialchars( $value ) . '</span>';
$str .= '<span>' . nl2br( htmlspecialchars( $value ) ) . '</span>';
}
$str .= '</td></tr>';
}
Expand Down

0 comments on commit bb8d398

Please sign in to comment.