- Home
- Forum
- ASP.NET Core - EJ 2
- the AppendHTML() method processes text only up to the first closing paragraph tag
the AppendHTML() method processes text only up to the first closing paragraph tag
I ran into a problem that the paragraph.AppendHTML() method only processes text up to the first closing </p> paragraph tag.
For example:
I have Html of the form:
<p>In reference to Zia Park arrival and departure slips, per HISA Rule 2000 Series-Racetrack Safety Program, Section 2143 (Racehorse Monitoring):</p><p>(b) indicates each racetrack shall submit the following information to the Authority with respect to each Horse on its grounds.</p>
The paragraph will only contain:
<p>In reference to Zia Park arrival and departure slips, per HISA Rule 2000 Series-Racetrack Safety Program, Section 2143 (Racehorse Monitoring):</p>
Hi Dmytro,
We have tried to reproduce the reported issue, but it is working properly on
our end. We have attached the sample, and the output generated from it. If you
still encounter any issues, kindly modify the sample to make it a
reproducible sample which will be helpful to reproduce the exact issue at
our end.
For more detailed information about HTML conversion, Refer the UG
Customizing
the HTML to Word conversion
Regards,
Sindhu Ramesh.
Attachment: Result_9c73557.docx
Hi Dmytro,
Kindly ignore the previous response.
We have tried to reproduce the reported issue, but it is working properly on
our end. We have attached the sample, and the output generated from it. If you
still encounter any issues, kindly modify the sample to make it a
reproducible sample which will be helpful to reproduce the exact issue at
our end.
For more detailed information about HTML conversion, Refer the UG
Customizing
the HTML to Word conversion
Regards,
Sindhu Ramesh.
Attachment: ConvertHtmlstringtodocx_805835e3.zip
I think there is a misunderstanding here. <p> tags create new WParagraphs. So there should be a second WParagraph in your document which contains " (b) indicates each racetrack shall submit the following information to the Authority with respect to each Horse on its grounds. "
Hi Ferry Koolen,
Upon review, we confirm that the HTML string contains two <p> tags, and
each <p> tag generates a new WParagraph in DocIO using AppendHTML API. We have attached the sample and output
for your reference which generated from the sample. Please refer to the
attached output document image showing the two paragraphs:
If you still encounter any issues, kindly modify the sample to make it
a reproducible sample which will be helpful to reproduce the exact
issue at our end.
Regards,
Gopinath.
Attachment: ConvertHtmlstringtodocx_1ad340d4.zip
- 4 Replies
- 4 Participants
-
DY Dmytro Yevdokymenko
- Jan 15, 2025 05:24 PM UTC
- Mar 11, 2026 07:20 AM UTC