Проблем със "&" при свежо.

Genius_m

Registered
Здравейте. Добавих си свежо бутон, но като си сложа моя линк и като натисна "Сподели" линка излиза , но в края където е &id= След този знак "&" (включително и него) не излизат. Направих си линка вместо "&" да е със "&" същия резултат.. :(
 
Я пробвай пак да си вземеш код от svejo. Най-вероятно се е бъгнало нещо при копирането.
 
Виж кода ти дали е & или & и пробвай да ги размениш.


Ampersands (&'s) in URLs

Another common error occurs when including a URL which contains an ampersand ("&"):

<a href="foo.cgi?chapter=1&section=2&copy=3&lang=en">...</a>

This example generates an error for "unknown entity section" because the "&" is assumed to begin an entity reference. Browsers often recover safely from this kind of error, but real problems do occur in some cases. In this example, many browsers correctly convert &copy=3 to ©=3, which may cause the link to fail. Since 〈 is the HTML entity for the left-pointing angle bracket, some browsers also convert &lang=en to 〈=en. And one old browser even finds the entity §, converting &section=2 to §ion=2.

To avoid problems with both validators and browsers, always use & in place of & when writing URLs in HTML:

<a href="foo.cgi?chapter=1&section=2&copy=3&lang=en">...</a>

Note that replacing & with & is only done when writing the URL in HTML, where "&" is a special character (along with "<" and ">"). When writing the same URL in a plain text email message or in the location bar of your browser, you would use "&" and not "&". With HTML, the browser translates "&" to "&" so the Web server would only see "&" and not "&" in the query string of the request.
 

Back
Горе