Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It strips HTML tag from HTML and outputs only text. TODO: - Support attribute - Support nested element
- Loading branch information
Showing
3 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
test/command/suite/select/function/html_untag/simple.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| table_create Entries TABLE_NO_KEY | ||
| [[0,0.0,0.0],true] | ||
| column_create Entries content COLUMN_SCALAR Text | ||
| [[0,0.0,0.0],true] | ||
| load --table Entries | ||
| [ | ||
| {"content": "I <em>am</em> a boy."} | ||
| ] | ||
| [[0,0.0,0.0],1] | ||
| select Entries --output_columns "html_untag(content)" --command_version 2 | ||
| [[0,0.0,0.0],[[[1],[["html_untag","null"]],["I am a boy."]]]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| table_create Entries TABLE_NO_KEY | ||
| column_create Entries content COLUMN_SCALAR Text | ||
|
|
||
| load --table Entries | ||
| [ | ||
| {"content": "I <em>am</em> a boy."} | ||
| ] | ||
|
|
||
| select Entries \ | ||
| --output_columns "html_untag(content)" \ | ||
| --command_version 2 |