Soukéina Bojabza
38ebbc0a04
[FIX] website: fix the dynamic snippets rendered content
...
Since commit [1], which updates jQuery to version 3.6.3, when dropping a
dynamic snippet (Events, Blog Posts), it appears broken. This happens
because in jQuery 3.5.0, the `htmlPrefilter` function (which is called
when the dynamic snippet content is rendered) has been modified.
The dynamic snippets are broken because auto-closed tags are contained
in the data that are fetched from the server and without the jQuery
regex to fix them, they are never closed properly, which breaks the
rendering. Indeed, the `etree.tostring(...)` function auto-closes the
tags of elements having no content when no method is specified as a
parameter.
This commit prevents auto-closed tags to appear in the data sent by the
server when rendering the dynamic snippets, by enforcing the fact that
they will be used as HTML.
[1]: https://github.com/odoo/odoo/commit/ae1cd3d5bb99b9835501144522b71f152aaf8e34
task-3199318
closes odoo/odoo#116929
X-original-commit: f6cbec8d0116305041f018870ab63e26c8cbef41
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com >
2023-03-29 11:47:06 +02:00
..
2023-03-29 11:46:58 +02:00
2023-03-24 12:50:13 +01:00
2023-03-28 18:46:02 +02:00
2023-03-18 03:32:40 +01:00
2023-03-28 18:46:05 +02:00
2023-03-27 19:13:37 +02:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-24 12:50:13 +01:00
2023-03-22 11:06:46 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-08 11:37:07 +01:00
2023-03-20 16:51:30 +01:00
2023-03-15 13:19:45 +01:00
2023-03-24 12:50:13 +01:00
2023-03-07 11:11:51 +01:00
2023-03-14 15:52:10 +01:00
2023-03-23 09:06:52 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-14 15:52:10 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-28 18:45:47 +02:00
2023-03-20 16:51:30 +01:00
2023-03-28 17:49:01 +02:00
2023-03-24 12:50:13 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-29 09:33:34 +02:00
2023-03-16 14:12:37 +01:00
2023-03-20 16:51:30 +01:00
2023-03-16 14:12:37 +01:00
2023-03-20 16:51:28 +01:00
2023-03-20 16:51:30 +01:00
2023-03-23 09:06:52 +01:00
2023-03-14 12:23:45 +01:00
2023-03-14 15:52:10 +01:00
2023-03-24 07:45:15 +01:00
2023-03-02 19:24:45 +01:00
2023-03-24 12:50:13 +01:00
2023-03-20 16:51:30 +01:00
2023-03-24 07:45:15 +01:00
2023-03-24 12:50:13 +01:00
2023-03-24 12:50:13 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-01 23:28:07 +01:00
2023-03-20 18:13:23 +01:00
2023-03-27 09:40:01 +02:00
2023-03-27 07:28:59 +02:00
2023-03-25 04:10:23 +01:00
2023-03-20 16:51:06 +01:00
2023-03-20 16:51:30 +01:00
2023-03-23 09:07:05 +01:00
2023-02-15 10:14:53 +01:00
2023-03-22 00:53:57 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-27 12:47:28 +02:00
2023-03-20 16:51:30 +01:00
2023-03-15 13:19:45 +01:00
2023-03-20 11:20:38 +01:00
2023-03-28 09:27:38 +02:00
2023-03-27 20:06:52 +02:00
2023-03-20 11:20:38 +01:00
2023-03-14 09:55:52 +01:00
2023-03-14 15:52:10 +01:00
2023-02-16 09:01:07 +01:00
2023-03-27 12:47:20 +02:00
2023-03-20 16:51:30 +01:00
2023-03-27 12:47:20 +02:00
2023-03-20 16:51:30 +01:00
2023-03-28 16:44:07 +02:00
2023-03-21 08:31:06 +01:00
2023-03-07 10:06:13 +01:00
2023-03-23 19:13:49 +01:00
2023-02-17 19:30:40 +01:00
2023-03-07 10:06:13 +01:00
2023-03-15 07:27:40 +01:00
2023-03-24 12:50:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-27 10:40:22 +02:00
2023-03-23 19:13:49 +01:00
2023-03-07 10:06:13 +01:00
2023-03-15 22:06:44 +01:00
2023-03-10 11:23:51 +01:00
2023-03-28 16:44:16 +02:00
2023-03-07 10:06:13 +01:00
2023-03-01 18:43:01 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-17 22:27:30 +01:00
2023-03-17 23:24:11 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-28 16:44:15 +02:00
2023-03-07 10:06:13 +01:00
2023-03-14 13:30:05 +01:00
2023-03-24 22:39:43 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-02-17 19:30:40 +01:00
2023-03-24 12:50:13 +01:00
2023-03-07 10:06:13 +01:00
2023-02-17 19:30:40 +01:00
2023-03-28 18:45:53 +02:00
2023-03-02 19:24:45 +01:00
2023-02-17 19:30:40 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-02-17 19:30:40 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-27 10:40:22 +02:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-10 13:32:41 +01:00
2023-02-27 11:47:11 +01:00
2023-02-27 11:47:11 +01:00
2023-02-06 09:20:56 +01:00
2023-03-07 10:06:13 +01:00
2023-03-18 03:32:40 +01:00
2023-03-15 16:08:08 +01:00
2023-03-25 02:47:01 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-28 16:44:20 +02:00
2023-03-07 10:06:13 +01:00
2023-03-24 12:50:13 +01:00
2023-02-17 19:30:40 +01:00
2023-03-23 19:13:49 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-28 16:44:16 +02:00
2023-03-18 02:14:39 +01:00
2023-03-21 08:31:06 +01:00
2023-03-18 02:14:39 +01:00
2023-03-07 10:06:13 +01:00
2023-03-28 16:44:15 +02:00
2023-03-24 07:44:44 +01:00
2023-03-28 18:45:47 +02:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-28 16:44:15 +02:00
2023-03-28 16:44:16 +02:00
2023-03-07 10:06:13 +01:00
2023-03-13 15:27:58 +01:00
2023-02-17 19:30:40 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-20 16:51:30 +01:00
2023-03-27 19:13:50 +02:00
2023-03-27 20:06:54 +02:00
2023-03-20 16:51:30 +01:00
2023-03-29 10:37:37 +02:00
2023-03-14 15:52:10 +01:00
2023-03-20 07:58:46 +01:00
2023-03-24 12:50:13 +01:00
2023-03-28 09:27:47 +02:00
2023-03-14 15:52:10 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-14 15:52:10 +01:00
2023-03-24 12:50:13 +01:00
2023-03-24 12:50:13 +01:00
2023-03-20 16:51:30 +01:00
2023-03-14 15:52:10 +01:00
2023-03-14 15:52:10 +01:00
2023-02-04 10:45:02 +01:00
2023-03-24 19:21:25 +01:00
2023-03-20 16:51:30 +01:00
2023-03-14 15:52:10 +01:00
2023-03-01 17:01:17 +01:00
2023-03-17 19:22:13 +01:00
2023-03-03 17:05:07 +01:00
2023-03-09 10:51:43 +01:00
2023-03-09 10:51:43 +01:00
2023-03-20 16:51:30 +01:00
2023-03-17 22:27:21 +01:00
2023-03-24 12:50:13 +01:00
2023-03-20 16:51:30 +01:00
2023-03-29 08:28:52 +02:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-09 10:51:29 +01:00
2023-03-16 20:37:59 +01:00
2023-03-20 16:51:30 +01:00
2023-03-07 16:56:40 +01:00
2023-03-20 16:51:30 +01:00
2023-03-09 10:51:29 +01:00
2023-03-29 09:33:55 +02:00
2023-03-05 15:12:54 +01:00
2023-03-29 11:47:00 +02:00
2023-03-16 14:12:29 +01:00
2023-03-16 09:37:19 +01:00
2023-03-09 15:54:58 +01:00
2023-03-20 16:51:30 +01:00
2023-03-21 19:54:34 +01:00
2023-03-24 03:28:42 +01:00
2023-02-07 16:38:34 +01:00
2023-03-28 18:45:50 +02:00
2023-03-24 03:28:42 +01:00
2023-03-28 13:43:49 +02:00
2023-03-24 11:08:19 +01:00
2023-03-10 11:23:51 +01:00
2023-03-09 15:54:58 +01:00
2023-02-07 16:38:34 +01:00
2023-03-14 15:52:10 +01:00
2023-03-24 19:21:46 +01:00
2023-03-20 16:51:30 +01:00
2023-03-24 23:41:54 +01:00
2023-03-20 16:51:30 +01:00
2023-03-29 09:33:35 +02:00
2023-03-22 17:03:46 +01:00
2023-03-16 14:12:37 +01:00
2023-03-22 17:03:46 +01:00
2023-03-22 17:03:46 +01:00
2023-03-05 15:12:54 +01:00
2023-03-25 18:58:00 +01:00
2023-02-03 14:23:02 +01:00
2023-03-24 12:50:13 +01:00
2023-03-03 18:10:57 +01:00
2023-02-13 15:15:34 +01:00
2023-03-15 13:19:45 +01:00
2023-03-23 12:14:51 +01:00
2023-03-27 11:43:09 +02:00
2023-03-20 16:51:30 +01:00
2023-03-24 12:50:13 +01:00
2023-03-20 16:51:30 +01:00
2023-03-28 18:46:17 +02:00
2023-03-20 16:51:30 +01:00
2023-03-17 15:02:46 +01:00
2023-02-24 10:06:06 +01:00
2023-03-20 18:13:04 +01:00
2023-03-08 17:33:37 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-09 12:01:01 +01:00
2023-03-24 02:23:37 +01:00
2023-02-22 20:26:07 +01:00
2023-02-03 11:45:19 +01:00
2023-03-22 14:52:42 +01:00
2023-02-13 15:15:08 +01:00
2023-03-27 22:58:39 +02:00
2023-03-20 16:51:30 +01:00
2023-03-24 01:24:48 +01:00
2023-03-17 11:47:09 +01:00
2023-03-03 19:10:10 +01:00
2023-03-24 07:45:07 +01:00
2023-03-07 02:00:06 +01:00
2023-03-29 10:37:25 +02:00
2023-03-08 21:33:03 +01:00
2023-03-10 14:38:43 +01:00
2023-03-29 09:34:00 +02:00
2023-03-20 18:13:14 +01:00
2023-03-29 10:37:22 +02:00
2023-03-08 17:33:37 +01:00
2023-03-24 12:50:13 +01:00
2023-03-20 16:51:30 +01:00
2023-03-28 13:43:20 +02:00
2023-03-24 12:50:13 +01:00
2023-03-28 17:49:01 +02:00
2023-03-20 15:31:27 +01:00
2023-03-28 13:43:57 +02:00
2023-03-17 11:47:09 +01:00
2023-03-29 10:37:19 +02:00
2023-03-14 15:52:10 +01:00
2023-02-03 10:25:00 +01:00
2023-03-16 07:29:49 +01:00
2023-03-07 11:11:42 +01:00
2023-03-15 13:19:45 +01:00
2023-02-24 11:11:40 +01:00
2023-03-08 17:33:37 +01:00
2023-03-29 09:33:35 +02:00
2023-03-29 09:33:52 +02:00
2023-03-27 16:05:05 +02:00
2023-03-24 09:05:13 +01:00
2023-02-21 00:47:34 +01:00
2023-03-29 11:47:06 +02:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-24 12:50:13 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-02-17 09:50:50 +01:00
2023-03-15 13:19:45 +01:00
2023-03-02 19:24:45 +01:00
2023-02-17 09:50:50 +01:00
2023-03-14 15:52:10 +01:00
2023-03-14 15:52:10 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-24 12:50:13 +01:00
2023-03-16 15:19:41 +01:00
2023-03-14 15:52:10 +01:00
2023-03-27 09:39:56 +02:00
2023-02-08 15:39:08 +01:00
2023-02-10 14:37:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-15 13:19:45 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-02-24 18:16:11 +01:00
2023-03-24 12:50:13 +01:00
2023-03-29 09:33:44 +02:00
2023-03-15 13:19:45 +01:00
2023-03-08 17:33:37 +01:00
2023-03-24 19:21:32 +01:00
2023-03-24 11:08:32 +01:00
2023-03-14 12:23:46 +01:00
2023-03-27 20:06:54 +02:00
2023-03-28 10:30:06 +02:00
2023-03-08 17:33:37 +01:00
2023-03-15 13:19:45 +01:00
2023-03-24 12:50:13 +01:00
2023-03-22 17:03:28 +01:00
2023-03-24 12:50:13 +01:00
2023-03-20 16:51:30 +01:00