Commits

jpclizbe  committed 3463cd0

Cleanup HTML processing for INDEX and VERBOSE INDEX

  • Participants
  • Parent commits 40f7f50

Comments (0)

Files changed (1)

    $text =~ s/<pre>//g;                                # Remove <pre>...</pre>
    $text =~ s/<\/pre>//g;                              # Remove <pre>...</pre>
    $text =~ s/<hr>/\n\n/g;                             # Replace <hr> with newline
+   $text =~ s/<hr \/>/\n\n/g;                          # Replace <hr /> with newline
+   $text =~ s/<strong>//g;                             # Remove <strong>...</strong>
+   $text =~ s/<\/strong>//g;                           # Remove <strong>...</strong>
    $text =~ s/<a href=\".*">([A-Z0-9]{8})/${1}/g;      # Remove first <a href="...">keyid
    $text =~ s/<a href=\".*">//g;                       # Remove remaining <a href="...">
+   $text =~ s/<span class=\".*\">//g;                 # Remove <span> tags
    $text =~ s/<font color=\"[a-z]+\">//g;              # Remove font tags
    $text =~ s/<[a-z]{1,5}>//g;                         # Remove <tags> with 1..5 chars
    $text =~ s/<\/[a-z]{1,5}>//g;                       # Remove </tags> with 1..5 chars