Simon Mourier's Avatar
Simon Mourier's blog (1807 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI3, AOT, P/Invoke, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • c#
  • html
  • html-agility-pack

Html Agility Pack is truncating a meta tag's value

Jul 1, 2011 See the question and my original answer on StackOverflow

The html is in fact invalid. The string you copied (without C# \" added) is:

<meta name="productattributes" value="shop: Baby|category: Category|category: Babies" r"us="" exclusives|f...

So the attribute 'value' finishes at Baby, there is a " (double quote) after the r, etc...

  • SmoBlog © 2010-2026 Simon Mourier. All rights reserved.
  • Privacy & Terms