How to fix this problem

On my website admin uploads a file .docx. I am converting a file in xmlusing OpenXmlPowerToolsApi.

The problem is that there are several bullets in the document.

• This is my mark 1 in the document.
• This is my bullet 2 in the document.

XElement html = OpenXmlPowerTools.HtmlConverter.ConvertToHtml(wDoc, settings);
var htmlString = html.ToString();
File.WriteAllText(destFileName.FullName, htmlString, Encoding.UTF8);

Now, when I open the xml file, it displays the bullets as shown below: -

XML Rendering

I need to read every XML node and save to the database and restore html from the nodes.

Please do not ask me why this is because I am not the boss of the system.

How to get the correct display of markers in xml so that I can save the correct html in the database?

+4
source share
2 answers

, , XML . . , , if, , , , , .

0

, .

, / .., , html. "ampersandbull"; " # 8226;",

listItem == "Compare with your copied character like one in your pic" ? "•" : listItem

:

http://www.zytrax.com/tech/web/entities.html

0

Source: https://habr.com/ru/post/1664696/


All Articles