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
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to