Adds an option to extractFromHtml to avoid cutting known quotation tags when otherwise no quoted text is found, unless the original message body was too large to process using checkpoints without doing so.
Risks
If this option is enabled, it will certainly increase cases of under-collapsed message history (but we can use that as an opportunity to improve the splitter detection and expand language support).
Otherwise, this is low-risk since TalonJS will continue to behave the same unless the new option is used.
Alternatives considered
Adding additional heuristics to cutQuotation (such as not cutting the quote if there was only one found, or not cutting the quote if it's the first text node)
Making the option default to true (= a breaking change)
Adds an option to
extractFromHtml
to avoid cutting known quotation tags when otherwise no quoted text is found, unless the original message body was too large to process using checkpoints without doing so.Risks
Alternatives considered
cutQuotation
(such as not cutting the quote if there was only one found, or not cutting the quote if it's the first text node)