Skip to content

Commit

Permalink
feat: allow HTML <br /> tag in data table in Plugin option page
Browse files Browse the repository at this point in the history
  • Loading branch information
sectsect committed Jun 19, 2024
1 parent 1b7c6e0 commit 92b257a
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 92b257a

Please sign in to comment.