hs.http.htmlEntities[]
hs.http.htmlEntities["&key;"]
where key
is the text of the entity's name or a numeric reference like #number
.hs.http.registerEntity(...)
function. If you feel you have a more official list of entities which contains items which are currently not included by default, please open up an issue at https://github.com/Hammerspoon/hammerspoon and your link will be considered.hs.http.asyncGet(url, headers, callback)
hs.http.asyncPost(url, data, headers, callback)
hs.http.convertHtmlEntities(inString) -> outString
inString
to appropriate UTF8 byte sequences and returns the converted text.hs.http.htmlEntities
or numeric entity sequences: &#n; where n
can be any integer number.hs.http.get
and hs.http.asyncGet
functions.hs.http.doAsyncRequest(url, method, data, headers, callback, [cachePolicy])
protocolCachePolicy
.text/
then the response body return value is a UTF8 string. Any other content type passes the response body, unaltered, as a stream of bytes.hs.http.doRequest(url, method, [data, headers, cachePolicy]) -> int, string, table
protocolCachePolicy
.hs.http.encodeForQuery(string) -> string
hs.http.get(url, headers) -> int, string, table
hs.http.post(url, data, headers) -> int, string, table
hs.http.registerEntity(entity, codepoint) -> string
hs.http.htmlEntity[entity]
for convenience and readability.U+xxxx
format to register with as the given entity.hs.http.htmlEntities[entity]
in your code. It looks good when invoked from the console, though ☺.hs.http.urlParts(url) -> table