URL escape
sergio <[email protected]> Tue, 17 Apr 2018 17:56:49 +0300
| Newsgroups | gmane.comp.web.mason.user |
|---|---|
| Message-ID | <[email protected]> |
I have a href url with a hash sign '#' If I encode it with <%'url' | H %> or do not encode at all, hash sign will not be encoded and validator will say: "Bad value <URL> for attribute href on element a: Illegal character in fragment: # is not allowed" But if I encode it with <%'url' | U %> or uri_escape( 'url' ), it will encode all, including :// after http. So browser will show it as relative URL. -- sergio. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot