<video> tag prepends empty <p></p> on each product save when using HTMLPurifier
Author: MatloshCreated Sep 16, 2026Updated Sep 16, 2026
### Prerequisites
- [x] I understand and accept the project's [code of conduct](https://github.com/PrestaShop/PrestaShop/blob/develop/CODE_OF_CONDUCT.md).
- [x] I have already [searched in existing issues](https://github.com/PrestaShop/PrestaShop/issues?q=is%3Aissue%20type%3ABug) and found no previous report of this bug.
### Describe the bug and add attachments
Adding `` to the product's description causes the PrestaShop to prepend `` tags before a video tag. As it happens on each save to every video tag it leads to growing visual gaps that have to be removed.
This happens only when I set the `Use HTMLPurifier Library` option (`Preferences > General`) to true.
Besides, this must be related to `` tag getting automatically wrapped in `
` tag as manually wrapping it in `
` causes the bug not to occur.
### Steps to reproduce
The simplest case to reproduce:
1. Add video to the product's description. Note that a `
2. Save the product.
3. Empty `` was appended before the wrapped `` tag.
### Expected behavior
There's no new empty `` prepended.
### Actual Result
Every time the description is saved, every `` gets `` prepended leading to unnecessary HTML and spacing (if not handled by theme's CSS).
### PrestaShop version where the bug happens
clean 9.1.5 and production shops with 9.1.4, 8.2.3, 1.7.8.11
### How have you installed PrestaShop
Clean local version installed from `prestashop/prestashop:9.1.5-apache` image. 9.1.4, 8.2.3 and 1.7.8.11 installed via zip from PrestaShop's site.
### PHP version(s) where the bug happened
8.x
### Your company or customer's name goes here (if applicable).
_No response_
` tag was added automatically. Example: `
`Source: PrestaShop/PrestaShop