search

Home  >  Q&A  >  body text

How to correctly use the '&' character in XML code

<p>I want to use the & character, but Visual Studio throws an exception. How should I write this character? </p>
P粉969253139P粉969253139457 days ago821

reply all(1)I'll reply

  • P粉064448449

    P粉0644484492023-08-23 09:34:20

    Replace any & with

    &amp;

    It will load correctly in XML.

    reply
    0
  • Cancelreply