I am trying to edit html content based on style tags
Here is the section of html:
<!DOCTYPE html>
<html>
<body>
<span style="color:restest">Testing</span>
<br>
<span style="color:restest">Testing Again</span>
</body>
</html>
I want to modify all instances of spans with style="color:restest" and add html tags to the contents.
They should become something like:
<a href="example.com/testing">Testing</a>
<a href="example.com/testing_again">Testing_Again</a>