@Nguyen Thi VIet Logic app does have expression function and you can refer to this document for more details.
We do have the XPath function that can help you with the use case but as XPath only accepts the XML string so you need to make sure that you are passing the XML string only.
If you view the source code of any page then you can see in most of the pages there might be <!doctype html>
which will make your string as invalid XML when you will try to parse the string to XML using xml function.
Therefore you need to make sure that you are passing the string without <!doctype html> and you can use split method to split the string and pass the right value.
For your reference, I have defined the html body to my string variable and using xml and XPath math I am getting the array value. This is only for reference you can modify it as per your end.
Once you have the href URL you can leverage http connector to get the content and create the file in sharepoint.
Expression:
xpath(xml(variables('html')),'/html/body/a/@href')
Workflow:
Output: