URL fragment (#) allowed characters

前端 未结 2 691
借酒劲吻你
借酒劲吻你 2020-12-01 13:11

After some digging on the internet I was unable to find a good answer to which characters I may use for URL fragment. I\'m writing a javascript-script that will take advanta

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-01 13:53

    It's a bit tricky to find the valid characters, but the file commented above does contain the information if you read deep enough.

    The available characters are as follow:

    • "!"
    • "$"
    • "&"
    • "'"
    • "("
    • ")"
    • "*"
    • "+"
    • ","
    • ";"
    • "="
    • "?"
    • "@"
    • ALPHA
    • DIGIT
    • "-"
    • "."
    • "_"
    • "~"
    • "%" HEXDIG HEXDIG
    • ":"
    • "/"

提交回复
热议问题