thephpleague / html-to-markdown

Convert HTML to Markdown with PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do you support the reserved space parameter

ClearSeve opened this issue · comments

Want to   keep as is

<code> &nbsp;</code>

Convert to

`&nbsp;`

Include other invisible characters

Hi there!

To get your desired Markdown you'd need to have HTML like this:

<code> &amp;nbsp;</code>

This is because &nbsp; in HTML is converted into a literal non-breaking space character, both in your browser and in this library. See https://jsbin.com/fupupoyupe/edit?html,output for an example.