GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Util.HrefEncode should encode ampersands

Click to view RSS...
Author
PEH
Posted Friday, January 26, 2007 - Post #16026
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers
Gamma
GenoPro version: 3.1.0.1

Last Login: Saturday, May 4, 2024
Posts: 15, Visits: 65
Documentation for Util.HrefEncode says "Since some characters are valid in URLs as delimiters, those characters are left alone", and includes ampersand as one of the characters left untouched. However, http://www.w3.org/TR/xhtml1/#C_12 recommends that ampersands are actually encoded with the HTML entity (&ampWink. This is especially important in SVG as the interpreter rejects URLs containing raw ampersands.

Edited: Saturday, January 27, 2007 by GenoProSupport
Posted Saturday, January 27, 2007 - Post #16044
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Thursday, January 16, 2025
Posts: 4,886, Visits: 22,775
If you want to encode all the characters in the URL, use Util.UrlEncode.  The ampersand (&) will be encoded as %26.

Edited: Saturday, January 27, 2007 by GenoProSupport


Similar Topics

Click to view RSS...
Expand / Collapse
No results found!

Reading This Topic

Expand / Collapse
Active: 4 - 1 guest, 2 members, 0 anonymous.
Refresh