test_pdf.php 258 B

12345678910111213141516
  1. <?php
  2. class TestPDF {
  3. /**
  4. * @param string $value
  5. * @return string
  6. */
  7. public static function getValueHtml(string $value): string {
  8. if(empty($value)) {
  9. return "<span class=\"text-muted\">N/A</span>";
  10. }
  11. return htmlspecialchars($value);
  12. }
  13. }