0

I need to add a line break in the content of XML used for C# .Net documentation,

<summary>
    <example>
        <para> content (wants to add a line break here)</para>
        <code> content </code>
    </example>
</summary>

How can I add it? BTW, < para /> not works for me.

Dante Jiang
  • 177
  • 1
  • 13
  • What do you mean by "para not works for me"? are you looking for [``](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/xmldoc/param) – René Vogt Dec 20 '17 at 09:22

1 Answers1

0

Try using CDATA:

 <summary>
        <example>
            <para> <![CDATA[content (wants to add a line break here)&lt; br/ &gt;]]></para>
            <code> content </code>
        </example>
    </summary>

Take a look at this discussion

Barr J
  • 10,636
  • 1
  • 28
  • 46