Menu

#220 unescaped & or unknown entity in URL

closed
aditsu
5
2012-10-08
2010-07-06
No

Hello,

i implemented some links

The eclipsetidy version 1.2.2 marks the following line after a check

Java Runzime Environment
ab Version 1.5"

with

Multiple annotations found at this line:
- unescaped & or unknown entity "&ProductID" - column 222
- unescaped & or unknown entity "&OrderID" - column 189
- unescaped & or unknown entity "&FileName" - column 257

However, in this case the ampersand is the separator of the arguments of an Url and not an unescaped & or an unknown entity

With best regards
Dirk

Discussion

  • aditsu

    aditsu - 2010-07-30

    First of all, this is not the eclipsetidy project.
    However, your problem is quite clear: ampersands in urls need to be escaped in html pages, see http://htmlhelp.com/tools/validator/problems.html#amp

     
  • Johannes Weberhofer

    Inside HTML & must be properly encoded as &
    The warning is correct.

     

Log in to post a comment.