From e04edf1ca0e0f2e6250c91dc86c63cf04eefb3d3 Mon Sep 17 00:00:00 2001 From: David Greenspan Date: Sun, 5 Jan 2014 17:29:01 -0800 Subject: [PATCH] Finish documenting htmljs package --- packages/htmljs/README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/htmljs/README.md b/packages/htmljs/README.md index 7b6c2c2cd0..36c8ab98f4 100644 --- a/packages/htmljs/README.md +++ b/packages/htmljs/README.md @@ -204,7 +204,17 @@ The `$dynamic` feature is designed to support writing `
The reason to perform the escaping as part of `HTML.toText` rather than as a post-processing step is in order to support `HTML.CharRef`, allowing the HTML author's choice of character reference encoding to be passed through. If we only had `STRING` mode, we would lose the original form of the character references. If we only had `RCDATA` mode, say, we would have to interpret the character references at runtime to use the DOM API. On a related note, we don't allow `HTML.Raw` because character references are the only "raw" thing there is in text mode (and, again, we don't want to interpret them at runtime). `HTML.CharRef` is sort of like a one-character version of `Raw`. ## Name Utilities