Skip to content

Commit

Permalink
do a slightly better job cleaning up the HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
otrok7 committed Jun 2, 2024
1 parent 7ea7999 commit b0e8ca6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bmlt-meeting-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -1895,13 +1895,17 @@ function write_single_meeting($meeting_value, $template, $analysedTemplate, $are
$search_strings = array();
$replacements = array();
$clean_up = array(
'<p></p>' => '',
'<em></em>' => '',
'<em> </em>' => '',
'()' => '',
'<strong></strong>' => '',
'<strong> </strong>' => '',
'<i></i>' => '',
'<i> </i>' => '',
' ' => ' ',
' ' => ' ',
' ' => ' ',
'<p></p>' => '',
'()' => '',
'<br/>' => 'line_break',
'<br />' => 'line_break',
'line_break line_break' => '<br />',
Expand All @@ -1910,6 +1914,7 @@ function write_single_meeting($meeting_value, $template, $analysedTemplate, $are
'<br />,' => '<br />',
', <br />' => '<br />',
',<br />' => '<br />',
'<p>,' => '<p>',
", , ," => ",",
", *," => ",",
", ," => ",",
Expand Down

0 comments on commit b0e8ca6

Please sign in to comment.