mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-16 08:58:30 +01:00
41 lines
839 B
JavaScript
41 lines
839 B
JavaScript
/**
|
|
* @author tlwr [toby@toby.codes]
|
|
* @author Matt C [me@mitt.dev]
|
|
* @copyright Crown Copyright 2019
|
|
* @license Apache-2.0
|
|
*/
|
|
|
|
import Operation from "../Operation.mjs";
|
|
|
|
/**
|
|
* HTML To Text operation
|
|
*/
|
|
class HTMLToText extends Operation {
|
|
|
|
/**
|
|
* HTMLToText constructor
|
|
*/
|
|
constructor() {
|
|
super();
|
|
|
|
this.name = "HTML To Text";
|
|
this.module = "Default";
|
|
this.description = "Converts an HTML output from an operation to a readable string instead of being rendered in the DOM.";
|
|
this.infoURL = "";
|
|
this.inputType = "html";
|
|
this.outputType = "string";
|
|
this.args = [];
|
|
}
|
|
|
|
/**
|
|
* @param {html} input
|
|
* @param {Object[]} args
|
|
* @returns {string}
|
|
*/
|
|
run(input, args) {
|
|
return input;
|
|
}
|
|
|
|
}
|
|
|
|
export default HTMLToText;
|