Skip to content

Use html-to-text instead of html2plaintext package#19

Open
johncaruso wants to merge 2 commits intosalcosta:masterfrom
johncaruso:master
Open

Use html-to-text instead of html2plaintext package#19
johncaruso wants to merge 2 commits intosalcosta:masterfrom
johncaruso:master

Conversation

@johncaruso
Copy link
Copy Markdown

@salcosta, the html2plaintext package was not preserving PRE block in the scripts background response (for sn_sync.evalScript command). All new lines in the output were removed, which is not desirable.

I swapped in a better package to convert html to text. It preserves the PRE block new lines. It also outputs the link for the execution history which can be useful if rollback is needed.

There were security vulnerabilities in a lodash dependency, so that's been upgraded as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant