Leonidas-from-XIV / node-xml2js

XML to JavaScript object converter.
MIT License
4.84k stars 598 forks source link

HTML strong tag is coming after printing all text #615

Open kkoollhim opened 3 years ago

kkoollhim commented 3 years ago

While parsing the below XML

Incident began at 2021-06-21 20:26 and ended at 2021-06-21 21:46 (all times are US/Pacific).

Summary: We are experiencing an issue with Cloud Monitoring beginning at Monday, 2021-06-21 00:00 US/Pacific.

it produces the result as summary: <div type="xhtml" xml:lang="en"><div xmlns="http://www.w3.org/1999/xhtml"><p> Incident began at and ended at <strong>2021-06-21 20:26</strong><strong>2021-06-21 21:46</strong><span>(all times are ).<strong>US/Pacific</strong></span></p><p>Affected products: Operations</p><div class="status-update-text"><p>Summary: We are experiencing an issue with Cloud Monitoring beginning at Monday, 2021-06-21 00:00 US/Pacific.</p>

As of now the strong tag is coming after printing the text inside p tag("Incident began at and ended at ") but is there any way that strong tag should come after began at and ended at?

kkoollhim commented 3 years ago

Hi @Leonidas-from-XIV can u pls look into this issue.