mikechambers / StringConvert

String conversion extension for Adobe Brackets Editor
9 stars 5 forks source link

HTML Entities Encode #4

Open jmtucu opened 11 years ago

jmtucu commented 11 years ago

Hello! I've a problem with the function HTML Entities Encode. If I select a string

Número

And run that function, nothing happend... That string encoded as HTML Entity must be

Número

Same problem with á é í ó ú ñ and another special characters that we use in the spanish language.

Thanks!

PS: I'm using Brackets Sprint 17

fuzenco commented 10 years ago

I can confirm HTML Entity Encode isn’t working. I’m on Sprint 33 of Brackets on Mac OS Mavericks.

fuzenco commented 10 years ago

It appears it only works with certain characters. A single quote character works and gives the numerical entity. A typographer’s single quote ( ’ ) doesn’t work. Also, I would have thought the command would provide the named entity. For instance, for the following string, here’s what happens…

String: We’re

Your extension: We're

Sublime Text editor: We’re
djmtype commented 10 years ago

With Sprint 35, curly quotes (both single and double) are not converted to HTML entities at all, neither are n-dashes and m-dashes.