@kylehotchkiss Yup. (It’s the only HTML entity converter in JavaScript I’ve seen with full Unicode support.)
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@mathias@espadrine did you compare perf with createTextNode(...).outerHTML? I guess it could be faster, but I wonder by how much.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@mathias@espadrine@jsperf Ok, let's go for it - you'll get the link soon ;-) What's the difference, however, I may have overlooked it?Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@mathias@espadrine Good catch, I always forget non-browser environments.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@mathias@espadrine Test results on my PC (he is faster everywhere but in IE) - http://jsperf.com/mathias-bynens-s-entity-decoder-vs-native-dom-technique …pic.twitter.com/E2VAruLMqd
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@mathias@espadrine lol, I misread the results; "he" seems slower everywhere but in IE. probably due to regexps.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@mathias You should have called it hé or something then..Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.