mathiasbynens / he

A robust HTML entity encoder/decoder written in JavaScript.
https://mths.be/he
MIT License
3.45k stars 254 forks source link

streaming implementation #25

Open jeromew opened 10 years ago

jeromew commented 10 years ago

Hello,

Have you considered a streaming implementation of he.

Reading the code, it seems like there are a lot of expression types to check and the streamer would probably need to be code generated out of a description of all the entities.

From your experience on he, do you think that is feasible / that would make sense ?

Thanks

anko commented 9 years ago

Just throwing more thoughts in the air hoping they might mesh with something:

Node's Stream API is currently marked "Unstable" though. Maybe this should be a different module? (Name would be obvious: "streaming he" → "she")