gms
gms copied to clipboard
In tests, Instead of using regex to match HTML attribute values, use an HTML parsing library
although it's good enough for predictable html it's.. incredibly ugly :-1:
HTML::TreeBuilder new_from_content, find_by_attribute and ->attr should help here! https://metacpan.org/pod/HTML::TreeBuilder