Text Helper
Helper component which contains operations to help you work with text.
Categories: helpers
Type: textHelper/v1
Actions
Base64 Decode
Name: base64Decode
Decodes base64 encoded text into human readable plain text.
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
encodingSchema | Encoding Scheme | STRING Optionsbase64, base64Url | true | |
content | Base64 Content | STRING | The Base64 encoded content that needs to be decoded. | true |
Example JSON Structure
{ "label" : "Base64 Decode", "name" : "base64Decode", "parameters" : { "encodingSchema" : "", "content" : "" }, "type" : "textHelper/v1/base64Decode"}
Output
Type: STRING
Concatenate
Name: concatenate
Concatenate two or more texts.
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
texts | Texts | ARRAY Items[STRING($text)] | true | |
separator | Separator | STRING | The text that separates the texts you want to concatenate. | false |
Example JSON Structure
{ "label" : "Concatenate", "name" : "concatenate", "parameters" : { "texts" : [ "" ], "separator" : "" }, "type" : "textHelper/v1/concatenate"}
Output
Type: STRING
Extract Content from HTML
Name: extractContentFromHtml
Extract content from the HTML content.
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
content | HTML Content | STRING | HTML content to extract content from. | true |
querySelector | CSS Selector | STRING | The CSS selector to search for. | true |
returnValue | Return Value | STRING OptionsATTRIBUTE, HTML, TEXT | The data to return. | true |
attribute | Attribute | STRING | The name of the attribute to return the value of | true |
returnArray | Return Array | BOOLEAN Optionstrue, false | If selected, then extracted individual items are returned as an array. If you don’t set this, all values are returned as a single string. | null |
Example JSON Structure
{ "label" : "Extract Content from HTML", "name" : "extractContentFromHtml", "parameters" : { "content" : "", "querySelector" : "", "returnValue" : "", "attribute" : "", "returnArray" : false }, "type" : "textHelper/v1/extractContentFromHtml"}
Output
The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.
Find
Name: find
Find substring
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
text | Text | STRING | true | |
expression | Expression | STRING | Text to search for. | true |
Example JSON Structure
{ "label" : "Find", "name" : "find", "parameters" : { "text" : "", "expression" : "" }, "type" : "textHelper/v1/find"}
Output
Type: BOOLEAN
HTML to Markdown
Name: HTMLToMarkdown
Converts HTML to markdown.
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
html | HTML Content | STRING | HTML content to be converted to markdown. | true |
Example JSON Structure
{ "label" : "HTML to Markdown", "name" : "HTMLToMarkdown", "parameters" : { "html" : "" }, "type" : "textHelper/v1/HTMLToMarkdown"}
Output
Type: STRING
Markdown to HTML
Name: markdownToHTML
Converts markdown to HTML.
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
markdown | Markdown content | STRING | Markdown content to convert to HTML. | true |
Example JSON Structure
{ "label" : "Markdown to HTML", "name" : "markdownToHTML", "parameters" : { "markdown" : "" }, "type" : "textHelper/v1/markdownToHTML"}
Output
Type: STRING
Replace
Name: replace
Replace all instances of any word, character, or phrase in text with another.
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
text | Text | STRING | true | |
searchValue | Search Value | STRING | Can be plain text or a regex expression. | true |
replaceValue | Replace Value | STRING | Leave blank to remove the search value. | false |
replaceOnlyFirst | Replace Only First Match | BOOLEAN Optionstrue, false | true |
Example JSON Structure
{ "label" : "Replace", "name" : "replace", "parameters" : { "text" : "", "searchValue" : "", "replaceValue" : "", "replaceOnlyFirst" : false }, "type" : "textHelper/v1/replace"}
Output
Type: STRING
Split
Name: split
Split the text by delimiter.
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
text | Text | STRING | true | |
delimiter | Delimiter | STRING | Delimiter used for splitting the text. | true |
Example JSON Structure
{ "label" : "Split", "name" : "split", "parameters" : { "text" : "", "delimiter" : "" }, "type" : "textHelper/v1/split"}
Output
Type: ARRAY
Items Type: STRING
Output Example
[ "" ]