Skip to content

How to get text without \n ? #266

Discussion options

You must be logged in to vote

This example can have multiple interpretations.
What exactly is the goal?

  • remove only trailing whitespace and linebreaks - you can use trimEnd() after conversion;
  • ignore all <br /> tags - use selectors: [ { selector: 'br', format: 'skip' } ].

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@romanboiko-softserve
Comment options

Answer selected by romanboiko-softserve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants