mobifyjs icon indicating copy to clipboard operation
mobifyjs copied to clipboard

Definition of escape for escapedHTMLString()

Open vmarta opened this issue 11 years ago • 1 comments

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.

vmarta avatar Apr 25 '13 22:04 vmarta

You're totally right @vmarta, it should be enabledHTMLString! Sorry for taking a bigillian years to get to this :)

jansepar avatar Oct 03 '13 06:10 jansepar