2

For example, I have a URL, that someone entered into a specific CMS form field, to display on the website: http://seneca.sunyconnect.suny.edu:4730/F/?request=79396&func=find-b&find_code=sys&local_base=her01pub

and it outputs the following html:

<a href="http://seneca.sunyconnect.suny.edu:4730/F/?request=79396&func=find-b&find_code=sys&local_base=her01pub" title="The Sociology of Sports" rel="external">The Sociology of Sports</a>

It is not considered valid, with the warning message: unescaped & or unknown entity "&func", as well as another warning: unescaped & or unknown entity "&find_code"

I know func & find_code are elements being passed thru the URL, but is there a way to make it valid & still allow it to go to the correct destination?

4

2 回答 2

7

只需将所有未转义的 & 符号 (&) 替换为 &

于 2009-07-21T15:04:04.090 回答
5

使用&amp;

<a href="http://seneca.sunyconnect.suny.edu:4730/F/?request=79396&amp;func=find-b&amp;find_code=sys&amp;local_base=her01pub" title="The Sociology of Sports" rel="external">The Sociology of Sports</a>

有关详细信息,请参阅URL 中的与号 (&'s)

于 2009-07-21T15:04:26.463 回答