So I have a string that looks like this: <a rel="nofollow" href="example.com" class="">1,300 Sales</a>
and I need to get the number of sales. I tried to do it like this:
sales_string = sales_string.replace(" Sales</a></span>", "").replace(
&format!(r#"<a rel="nofollow" href="{}" class="">"#, url_href),
"",
);
And it works, but I think there is a better way of doing this.