hyTags
HomeHome DocumentationDocumentation

url-get-host

Gets the host from a URL
Parameter
Type
Description
self
Url
The URL to get the host from
return
string
The host domain or IP address
Test Case:Get host from URL
    <div></div>
    
    <url-from-string string="https://example.com:8080/path">
    <url-get-host>
    <assert-equal value="example.com" type="string">
    
    👆 Try to change something!
  • Test succeeded Test failed