Skip to main content

Module anchor

Module anchor 

Source
Expand description

Carrying a thread onto a new version of its page: the page’s text as the page script reads it, and where a thread’s quote is in it now. Pure — the server hands it the new version’s HTML and stores what it answers.

Functions§

reanchor
Where anchor’s quote is in text now: the anchor itself when its quote is still there with its context, a new one with the context it has now when only the quote is, and None when the quote is gone — the thread is detached.
text
The text of rendered HTML as the page script’s text model reads it: the text between the tags, entities decoded, every run of white space one space.