Skip to content

Commit 6b4d10b

Browse files
Create extract-json-key.js
Adding js
1 parent 2cea4ea commit 6b4d10b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
(function execute(inputs, outputs) {
2+
var htmlString = inputs.htmlValue; // Assuming HTML string is stored in the input variable htmlValue
3+
var plainText = htmlString.replace(/<[^>]+>/g,''); // Regex to replace HTML tags
4+
outputs.plainString = plainText.trim(); // Trimming the whitespaces, if any and pushing the string without HTML to output variable plainString
5+
})(inputs, outputs);

0 commit comments

Comments
 (0)