diff options
| author | Thibault Delavallée <tde@openerp.com> | 2016-03-02 13:58:46 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2016-03-02 16:43:22 +0100 |
| commit | bfe7aafa7f69671219464f35ba56e34c6f1eb12f (patch) | |
| tree | d44fc2db2bc9ba09bae74951016ba6aaa5aedb9a /addons/mail/static/src/xml/thread.xml | |
| parent | fd25fd4d4416bb7c8ee38389316b05416e5e4640 (diff) | |
[IMP] tools: mail: parse style in sanitizer
Style attribute is now parsed and sanitized. Only a while list of accepted
properties is kept. The behavior is implemented directly in the cleaner
itself. As there is no easy possible inheritance, the styling cleaning is
appended directly after the legacy processing in __call__.
The styling sanitizer is called only if the style attribute is kept. If
the sanitizer is called with strip_style=True, the styling is removed
and therefore no sanitizing is performed.
Tests about html fields have been updated. Indeed the styling is now sanitized
and the test was not correct anymore, as the test html was stripped. It now
contains styling that is kept. The strip_classes is also tested.
Diffstat (limited to 'addons/mail/static/src/xml/thread.xml')
0 files changed, 0 insertions, 0 deletions
