ProductExtraExtensions

StockSharp.Web

Methoden

RenderedToHtml
public static string RenderedToHtml(string html)
result = ProductExtraExtensions.RenderedToHtml(html)

The rendered body as lines, with the inline markup left alone. A paragraph boundary stays a blank line: it is what tells the description from the bullets, and flattening it to a single break would make the opening paragraph read as the first bullet.

RenderedToHtmlLines
public static IReadOnlyList<string> RenderedToHtmlLines(string html)
result = ProductExtraExtensions.RenderedToHtmlLines(html)

Recovers the authored bullets from what the renderer produced. It wraps the whole list in one paragraph and leaves the line breaks inside it, so the split is by line -- across paragraph and break tags too. What the renderer made of a bullet is kept: a bullet naming a product with "@product(id)" arrives here as the link to it, and stripping the markup would leave the reader a bare name.

Rückgabe: One HTML fragment per bullet, for a caller that prints it as markup.