Live HCPs : · Emails : · Source : ethica.medecins_real · Refresh 60s
$1', $html); $html = preg_replace('/^## (.+)$/m', '

$1

', $html); $html = preg_replace('/^# (.+)$/m', '

$1

', $html); $html = preg_replace('/^---\s*$/m', '
', $html); $html = preg_replace('/\*\*(.+?)\*\*/', '$1', $html); $html = preg_replace('/`([^`]+)`/', '$1', $html); $html = preg_replace('/^- (.+)$/m', '
  • $1
  • ', $html); $html = preg_replace('/^\d+\. (.+)$/m', '
  • $1
  • ', $html); $html = preg_replace('/(
  • .*?<\/li>\s*)+/s', '', $html); // Table basic $html = preg_replace_callback('/(^\|.+?\|$\s*)+/m', function($m) { $rows = explode("\n", trim($m[0])); $out = ''; foreach ($rows as $i => $r) { if (preg_match('/^\|[\s|\-:]+\|$/', $r)) continue; $cells = array_map('trim', explode('|', trim($r, '|'))); $tag = $i === 0 ? 'th' : 'td'; $out .= ''; foreach ($cells as $c) $out .= "<$tag>$c"; $out .= ''; } return $out . '
    '; }, $html); $html = nl2br($html); echo $html; ?>