Skip to content

Commit

Permalink
Don't include bills' header text
Browse files Browse the repository at this point in the history
  • Loading branch information
waldoj committed Nov 28, 2024
1 parent a56ca48 commit a3ba3ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cron/full_text.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,19 @@

# Finally, we're at the text of the bill.
if (isset($start)) {

# Determine where the header text ends and the actual law begins.
if (stristr($full_text[$i], 'Be it enacted by')) {
$law_start = true;
}

if (isset($law_start) && ($law_start == true)) {
# Replace the legislature's style tags with semantically meaningful tags
if (isset($law_start)) {
$full_text[$i] = str_replace('<em class=new>', '<ins>', $full_text[$i]);
$full_text[$i] = str_replace('</em>', '</ins>', $full_text[$i]);
}

# Finally, append this line to our cleaned-up, stripped-down text.
$full_text_clean .= $full_text[$i] . ' ';
# Append this line to our cleaned-up, stripped-down text.
$full_text_clean .= $full_text[$i] . ' ';
}
}
}
unset($full_text);
Expand Down

0 comments on commit a3ba3ff

Please sign in to comment.