Document examples of URL normalization with a table
jage opened this issue · comments
The focus of the table would be to show the potential difference between a normalized and a non-normalized URL.
Method | Non-normalized | Normalized |
---|---|---|
.host |
räksmörgås.макдональдс.рф |
xn--rksmrgs-5wao1o.xn--80aalb1aicli8a5i.xn--p1ai |
Original discussion in https://github.com/twingly/twingly-url/pull/90/files#r78955259
I think it's kinda good that they are above/below each other, that's useful when you compare.
url.host # => "räksmörgås.макдональдс.рф"
url.normalized.host # => "xn--rksmrgs-5wao1o.xn--80aalb1aicli8a5i.xn--p1ai"
Using a table I think we risk that a long string could be line broken (eh, is that how you say it? :))?
we risk that a long string could be line broken (eh, is that how you say it? :))?
hmm, maybe "wrapping", a long string would wrap