8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6924dc8 commit 0883df6Copy full SHA for 0883df6
utils/extract-entities.py
@@ -0,0 +1,13 @@
1
+import urllib2
2
+entitiesPage = "http://www.whatwg.org/specs/web-apps/current-work/multipage/section-entities.html"
3
+output = ""
4
+for line in urllib2.urlopen(entitiesPage).readlines():
5
+ entityNameSig = " <td> <code title=\"\">"
6
+ entityValueSig = " </td><td> "
+ if line.startswith(entityNameSig):
8
+ x = len(entityNameSig)
9
+ output += " \"" + line[x:-8] + "\": "
10
+ elif line.startswith(entityValueSig):
11
+ x = len(entityValueSig)
12
+ output += "u\"" + line[x:-1].replace("U+", "\\u") + "\",\n"
13
+print output
0 commit comments