"""
Cleans html tags and any attributes other than the attribute specificed and return it's value.

For example:
if `https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="<KEY>" crossorigin="anonymo` is the input, the output is `https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css`
"""
import re

def clean_attributes(input: str):
    try:
        return re.findall(r'(.*\.css|.*\.jsx|.*\.js)', input)[0]
    except IndexError:
        return ""

"""
Cleans html tags and any attributes other than the attribute specificed and return it's value.

For example:
if `https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="<KEY>" crossorigin="anonymo` is the input, the output is `https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css`
"""
import re

def clean_attributes(input: str):
    try:
        return re.findall(r'(.*\.css|.*\.jsx|.*\.js)', input)[0]
    except IndexError:
        return ""

Cleans html tags and any attributes other than the attribute specificed and return it's value.  For example: if `https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="<KEY>" crossorigin="anonymo` is the input, the output is `https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css`