summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/thread.xml
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2016-03-02 13:58:47 +0100
committerThibault Delavallée <tde@openerp.com>2016-03-03 15:44:56 +0100
commitcb8c2d2b7e15c7c16e02d078767e27a07e5012c6 (patch)
tree7109e1e00270e1ca6d2fe969060acd085ddd3bd9 /addons/mail/static/src/xml/thread.xml
parent79bc3f3836f730d2fb52acf02bb901c8fe88240e (diff)
[IMP] tools: sanitizer: quote detection
Quote detection is now done in the sanitizer itself. It tags nodes that are inside quotes (signature, text quotes, email quotes). The purpose is to remove html_email_clean and have all the html cleaning / sanitizing inside a single function. When a node is tagged, data-o-mail-quote is set on the node. This attribute is added in the whitelist of valid attributes for the sanitizer. [REM] Support of shortening messages. The read more / read less will only display or hide detected quotes and signatures. Shortening messages above a given amount of characters is not supported anymore. Indeed it adds much complexity to the sanitizer without adding much value to the result. The primary purpose of the sanitizer is indeed to remove noise and unnecessary content. [TESTS] a lot of test are not necessary anymore, as read more / read less display will be moved in the front-end and as the shortening has been removed.Tests have therefore been cleaned and simplified. [DEMO] mail: small demo update to include a bit quote detection
Diffstat (limited to 'addons/mail/static/src/xml/thread.xml')
0 files changed, 0 insertions, 0 deletions