Error checking dynamically generated links

The problem is checking the following link:

    <link href="/WebResource.axd?d=iU6d9QgZtDnsqOJdmY0qJqVXyEU9Bc_DZHppuTGlpxU8YzwGet7OFPf9pflYz5SdwzuL1HVwxtSRZApovmcmRFW9P0ToSD3GFaTiOAqfOKHTYh7U0&t=634254225425826735" type="text/css" rel="stylesheet" />

and here w3c detects an error:

…UkrzqUngMzMpJmeFoz3FRJkFt3xFwsVmYNYc0&t=634254231258016859" type="text/css" re…

…krzqUngMzMpJmeFoz3FRJkFt3xFwsVmYNYc0&t=634254231258016859" type="text/css" rel…

in the first it says that “t” is a problem, and in the second it means “=”.

+3
source share
2 answers

You need to hide and use &amp;.

+2
source

Do you have control over the link or ASP.NET by adding it to the page for you?

I believe the real problem with the W3C validator is that it wants you to encode the ampersand ( & = &amp;).

0
source

Source: https://habr.com/ru/post/1774962/


All Articles