title: ASP.NET Line Breaks in Title Element
body: <p>I'm trying to optimize SEO readability on our websites and one issue I've come across is ASP.NET butchering the title element of my MasterPage. Entered as such in my MasterPage (manually reformatted to remove line breaks caused by the <code>&lt;% %&gt;</code> tags):</p>
  
  <pre><code>&lt;title&gt;&lt;asp:ContentPlaceHolder ID="TitleContent" runat="server" /&gt; - &lt;%=WebsiteSettings.WebsiteName %&gt;&lt;/title&gt;
  </code></pre>
  
  <p>This is the output I receive:</p>
  
  <pre><code>   &lt;title&gt;
      Home
   - Website Name&lt;/title&gt;
  </code></pre>
  
  <p>As you can see ASP.NET is adding preceding and trailing line breaks where the <code>&lt;asp:ContentPlaceHolder /&gt;</code> is substitute becaused Visual Studio auto-formats <code>&lt;asp:Content /&gt;</code> to start and end with a line break. Obviously, this can be prevented in the Visual Studio formatting options, but this is not ideal because I only would want to remove that behavior for the TitleContent placeholder and not the rest.</p>
  
  <p>Is there any way I can ensure my Title is trimmed before it is rendered? I am using MVC so code-behind is not an acceptable option.</p>