Skip to content

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

NameLabelTypeControl TypeDescriptionRequired
encodingSchemaEncoding SchemeSTRING
Options base64, base64Url
SELECTtrue
contentBase64 ContentSTRINGTEXT_AREAThe Base64 encoded content that needs to be decoded.true

JSON Example

{
"label" : "Base64 Decode",
"name" : "base64Decode",
"parameters" : {
"encodingSchema" : "",
"content" : ""
},
"type" : "textHelper/v1/base64Decode"
}

Concatenate

Name: concatenate

Concatenate two or more texts.

Properties

NameLabelTypeControl TypeDescriptionRequired
textsTextsARRAY
Items [STRING($text)]
ARRAY_BUILDERtrue
separatorSeparatorSTRINGTEXTThe text that separates the texts you want to concatenate.false

Output

Type: STRING

JSON Example

{
"label" : "Concatenate",
"name" : "concatenate",
"parameters" : {
"texts" : [ "" ],
"separator" : ""
},
"type" : "textHelper/v1/concatenate"
}

Extract Content from HTML

Name: extractContentFromHtml

Extract content from the HTML content.

Properties

NameLabelTypeControl TypeDescriptionRequired
contentHTML ContentSTRINGTEXT_AREAHTML content to extract content from.true
querySelectorCSS SelectorSTRINGTEXTThe CSS selector to search for.true
returnValueReturn ValueSTRING
Options ATTRIBUTE, HTML, TEXT
SELECTThe data to return.true
attributeAttributeSTRINGTEXTThe name of the attribute to return the value oftrue
returnArrayReturn ArrayBOOLEAN
Options true, false
SELECTIf 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

JSON Example

{
"label" : "Extract Content from HTML",
"name" : "extractContentFromHtml",
"parameters" : {
"content" : "",
"querySelector" : "",
"returnValue" : "",
"attribute" : "",
"returnArray" : false
},
"type" : "textHelper/v1/extractContentFromHtml"
}

Find

Name: find

Find substring

Properties

NameLabelTypeControl TypeDescriptionRequired
textTextSTRINGTEXT_AREAtrue
expressionExpressionSTRINGTEXTText to search for.true

Output

Type: BOOLEAN

JSON Example

{
"label" : "Find",
"name" : "find",
"parameters" : {
"text" : "",
"expression" : ""
},
"type" : "textHelper/v1/find"
}

HTML to Markdown

Name: HTMLToMarkdown

Converts HTML to markdown.

Properties

NameLabelTypeControl TypeDescriptionRequired
htmlHTML ContentSTRINGTEXT_AREAHTML content to be converted to markdown.true

Output

Type: STRING

JSON Example

{
"label" : "HTML to Markdown",
"name" : "HTMLToMarkdown",
"parameters" : {
"html" : ""
},
"type" : "textHelper/v1/HTMLToMarkdown"
}

Markdown to HTML

Name: markdownToHTML

Converts markdown to HTML.

Properties

NameLabelTypeControl TypeDescriptionRequired
markdownMarkdown contentSTRINGTEXT_AREAMarkdown content to convert to HTML.true

Output

Type: STRING

JSON Example

{
"label" : "Markdown to HTML",
"name" : "markdownToHTML",
"parameters" : {
"markdown" : ""
},
"type" : "textHelper/v1/markdownToHTML"
}

Replace

Name: replace

Replace all instances of any word, character, or phrase in text with another.

Properties

NameLabelTypeControl TypeDescriptionRequired
textTextSTRINGTEXT_AREAtrue
searchValueSearch ValueSTRINGTEXTCan be plain text or a regex expression.true
replaceValueReplace ValueSTRINGTEXTLeave blank to remove the search value.false
replaceOnlyFirstReplace Only First MatchBOOLEAN
Options true, false
SELECTtrue

Output

Type: STRING

JSON Example

{
"label" : "Replace",
"name" : "replace",
"parameters" : {
"text" : "",
"searchValue" : "",
"replaceValue" : "",
"replaceOnlyFirst" : false
},
"type" : "textHelper/v1/replace"
}

Split

Name: split

Split the text by delimiter.

Properties

NameLabelTypeControl TypeDescriptionRequired
textTextSTRINGTEXT_AREAtrue
delimiterDelimiterSTRINGTEXTDelimiter used for splitting the text.true

Output

Type: ARRAY

Properties

NameTypeControl Type
STRINGTEXT

JSON Example

{
"label" : "Split",
"name" : "split",
"parameters" : {
"text" : "",
"delimiter" : ""
},
"type" : "textHelper/v1/split"
}