akalongman / sublimetext-stringutilities

Sublime Text 2/3 plugin for string manipulations
MIT License
83 stars 24 forks source link

Convert HTML Entities to Chars #8

Closed derikmacedo closed 8 years ago

derikmacedo commented 9 years ago

"Convert HTML Entities to Chars" not working 2015-08-27_16-36-48

akalongman commented 9 years ago

Any error in console?

derikmacedo commented 9 years ago

Nothing. S.O Win7 x64. ST3 last build.

weisk commented 8 years ago
File "/Users/fran/Library/Application Support/Sublime Text 3/Packages/StringUtilities/stringutilities.py", 

line 66, in run
    text = re.sub('&(%s);' % '|'.join(htmlentitydefs.name2codepoint)

NameError: global name 'htmlentitydefs' is not defined

I think you upgraded the old import htmlentityfdefs to import html.entities (migration from python 2 to 3), but forgot to replace the occurrences on the code. Just doing import html.entities as htmlentitydefs fixes it.

akalongman commented 8 years ago

Thanks for support. You can send to me pull request

derikmacedo commented 8 years ago

Perfect! Now it's working..