mirror of
https://github.com/gchq/CyberChef
synced 2025-01-08 10:38:46 +00:00
Add "HTML to Text" operation
This commit is contained in:
parent
5944568565
commit
247e9bfbde
2 changed files with 18 additions and 0 deletions
|
@ -3509,6 +3509,14 @@ const OperationConfig = {
|
||||||
value: Charts.COLOURS.max,
|
value: Charts.COLOURS.max,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"HTML to Text": {
|
||||||
|
description: [].join("\n"),
|
||||||
|
run: HTML.runHTMLToText,
|
||||||
|
inputType: "html",
|
||||||
|
outputType: "string",
|
||||||
|
args: [
|
||||||
|
]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -851,6 +851,16 @@ const HTML = {
|
||||||
"diams" : 9830,
|
"diams" : 9830,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HTML to text operation
|
||||||
|
*
|
||||||
|
* @param {string} input
|
||||||
|
* @param {Object[]} args
|
||||||
|
* @returns {string}
|
||||||
|
*/
|
||||||
|
runHTMLToText(input, args) {
|
||||||
|
return input;
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default HTML;
|
export default HTML;
|
||||||
|
|
Loading…
Reference in a new issue