Skip to content

Commit

Permalink
Merge pull request #33 from Code4GovTech/sasi_dev_v2fix
Browse files Browse the repository at this point in the history
markdown issue fix - Added strip for removing unclosed tags
  • Loading branch information
karntrehan authored Jul 17, 2024
2 parents 9c90a2d + 0ea44dd commit 00b5cd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion v2_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def week_data_formatter(html_content, type):
task_list_html = tasks_per_week[i] if i < len(tasks_per_week) else ""
weekly_updates.append({
'week': i + 1,
'content': task_list_html.strip()
'content': re.sub(r'<[^>]+>', '',task_list_html).strip()

})
return weekly_updates

Expand Down

0 comments on commit 00b5cd9

Please sign in to comment.