Using the WYSIWYG field generates HTML (obviously).
This is a shortcode generated:
{{widget type="My\Module\Block\Widget\Wysiwyg" body_text="<p style="text-align: center;"><em>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</em></p>"}}
Since the content is not escaped in any way it cannot be displayed properly as the parser cuts off at the first " (style="...).
How can I tell this element to store the resulting content escaped or somewhat encoded (base64, html entites....)?
Using the WYSIWYG field generates HTML (obviously).
This is a shortcode generated:
{{widget type="My\Module\Block\Widget\Wysiwyg" body_text="<p style="text-align: center;"><em>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</em></p>"}}
Since the content is not escaped in any way it cannot be displayed properly as the parser cuts off at the first " (style="...).
How can I tell this element to store the resulting content escaped or somewhat encoded (base64, html entites....)?
Thank you