title | issue | author | author_email | author_github |
---|---|---|---|---|
Sanitize HTML contents of fields and CMS text elements |
NEXT-15172 |
d.neustadt |
d.neustadt@shopware.com |
dneustadt |
- Changed dependency of
ezyang/htmlpurifier
fromStorefront
toCore
- Added
HtmlSanitizer
service to framework utils - Changed former
htmlPurifier
config fromStorefront
toCore
asshopware.html_sanitizer
- Added
$sanitize
constructor parameter toAllowHtml
field flag to specify whether html content should be sanitized as perHtmlSanitizer
- Changed hanlding of text CMS element contents in
TextCmsElementResolver
to sanitize HTML
- Added
sanitizeInput
andsanitizeFieldname
property toSwTextEditor
andSwCodeEditor
component - Added
userInputSanitizeService
withsanitizeInput({ html, field })
method to receive a preview of backend sanitization - Changed
SwCodeEditor
onBlur()
behavior to useuserInputSanitizeService
ifsanitizeInput
property is set - Added
sanitizeEditorInput(value)
function toSwCodeEditor
for previewing sanitized content to the user
- Changed
SwSanitizeTwigFilter
to useHtmlSanitizer