console.log(html);
const contentBlock = htmlToDraft(html);
contentBlock.contentBlocks.forEach(i => console.log(i.toJS()));
first console.log prints this
console.log for contentBlock prints this
characterList: (4) [{…}, {…}, {…}, {…}]
data: {}
depth: 0
key: "8fh3d"
text: "sdf "
type: "unordered-list-item"
as you see it adds extra space to text inside <li>