Closed vseager closed 2 years ago
@vseager something like this
strip_tags(preg_replace('~<style(.*?)</style>~Usi', "", $var));
@davidwindell Perfect, I was thinking we could add this into an abstract block so that it's applied to all page types and fields where stripeTags()
is used?
https://github.com/outeredge/magento-structured-data-module/blob/master/view/frontend/templates/jsonld/cms.phtml#L3
Example: