Skip to content
This repository was archived by the owner on Aug 5, 2020. It is now read-only.
This repository was archived by the owner on Aug 5, 2020. It is now read-only.

Definition of escape for escapedHTMLString() #133

Description

@vmarta

Why is escapedHTMLString() called as it is now? Shouldn't it be unescapedHTMLString() perhaps?

In the doc's Quick Start page, the main.js sample has this comment:

// To escape content, we prepend resources with "x-",
// so to change the src, you must set x-src.

In this case, the word 'escape' means adding the prefix.

However, that meaning is contradicted with what escapedHTMLString() does:

Returns a string representation of the captured document, but with all resources enabled (prefix removed).

What's the correct definition of 'escape'? Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions