Skip to content

validate URLs in the html_body at some point before sending the email #9

@Mexarm

Description

@Mexarm

validate
validate <img src=..." >

exceptions %var name%, [[var_name]], {{=var_name}}

idea:
from bs4 import BeautifulSoup
soup = BeautifulSoup(html_body, 'html.parser')
for a in soup.find_all('a'):
if not a['href'] in exceptions:
verify_url(a['href'])

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions