mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-02-28 05:53:31 +00:00
Working on making the new packet infrastructure run.
This commit is contained in:
@@ -36,19 +36,6 @@ function openpgp_encoding_base64_decode(message) {
|
||||
return r2s(message);
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper function for jquery library.
|
||||
* This function escapes HTML characters within a string. This is used
|
||||
* to prevent XSS.
|
||||
* @param {String} message Message to escape
|
||||
* @return {String} Html encoded string
|
||||
*/
|
||||
function openpgp_encoding_html_encode(message) {
|
||||
if (message == null)
|
||||
return "";
|
||||
return $('<div/>').text(message).html();
|
||||
}
|
||||
|
||||
/**
|
||||
* create a EME-PKCS1-v1_5 padding (See RFC4880 13.1.1)
|
||||
* @param {String} message message to be padded
|
||||
|
||||
Reference in New Issue
Block a user