onizet / html2openxml

Html2OpenXml is a small .Net library that convert simple or advanced HTML to plain OpenXml components. This program has started in 2009, initially to convert user's comments from SharePoint to Word.
MIT License
306 stars 107 forks source link

HTML <b> is not working as well as css Font-weight property #67

Closed anshumandikshit closed 3 years ago

anshumandikshit commented 4 years ago

The HTML tag is not getting parsed .I have also checked with style='font-weight: 500;font-weight: bold;' . But both are not working properly .Any leads will be very helpful for me .

<label ><b> <span> Degree :</span> </b> <span>Something</span></label><br/>

<label > <span style='font-weight: 500;font-weight: bold;'> Degree : </span> <span>Something </span></label><br/>

The generated output snapshot has been attached in image

IssueBoldHtml

onizet commented 3 years ago

Remove the space <label > -> <label>

I did the test and it works fine if modified