Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 7072c16d16
Fetching contributors…

Cannot retrieve contributors at this time

9 lines (7 sloc) 0.292 kB
import sublime, sublime_plugin, HTMLParser
class DecodeHtmlEntitiesCommand(sublime_plugin.TextCommand):
def run(self, edit):
h = HTMLParser.HTMLParser()
for region in self.view.sel():
content = h.unescape(self.view.substr(region))
self.view.replace(edit, region, content)
Jump to Line
Something went wrong with that request. Please try again.