"Copy HTML" export not converting UTF-8 characters to their escape sequences

Raphael's Avatar

Raphael

15 Jul, 2013 02:42 PM

Hi, I'm using Marked to convert an UTF-8 encoded markdown document to HTML.

My problem is that characters such as non-breaking spaces or em dashes are not converted to their respective HTML escape sequences (&nbsp; and &mdash;). This is not an issue when Marked saves the entire HTML file, thanks to the <meta charset="utf-8"> header.

However, when using the Copy HTML command, it would be nice to have Marked format the output for the lowest common denominator, since the generated code is likely to be pasted into a different file with possibly different encoding.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac