mobifyjs
mobifyjs copied to clipboard
Definition of escape for escapedHTMLString()
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.
You're totally right @vmarta, it should be enabledHTMLString
! Sorry for taking a bigillian years to get to this :)