When you select a piece of HTML and look at the source, what you get is not 100% what it is. For example, all of you and & , which probably means that you selected the violating text and looked at the source of the selection.
If you still have a problem trying to browse the entire source code without selecting anything, and then using ctrl + f to find a spot in the code, try and give us a larger sample, not just an offensive line, but a correct line and more wide context.
For example, when using tables, an invalid <td> can have very strange consequences, this is not like this type of problem, I just say that we need context in order to be able to help.
There is also a problem that some browsers, in order to view the source, actually re-submit the page and receive a second copy. I have a feeling that this is code that outputs text, so look and see if you use something like
<?= $someVar ?>
and make sure this is not the case:
<a href=<?= isset($x) ?'"'. $someVar.'"': '"'.$someOlderVar.'">'?>> xxx </a>
So, there is no choice and a larger sample. And we really need something from the code that outputs the erroneous HTML ...
source share