According to the WordPress wiki pages on developing themes, I have to call wp_head()
in the <head>
tag so that WordPress can insert some additional HTML code into my theme. Normally this doesn't cause any validation problems, but when I search for something on my custom-themed WordPress blog one of the automatically inserted lines doesn't pass XHTML 1.0 Strict validation.
This is the offending line:
<link rel="alternate" type="application/rss+xml" title="My Blog » search results for “hello world”" href="http://<!-- Path to my blog -->/?s=hello%20world&feed=rss2" />
That ampersand before feed=rss2
causes trouble. Replacing it with &
should fix this, but since WordPress automatically inserts the code there's no way to do that. Or is there?
No plugins are running on my site, by the way.