Skip to content

Issue with escapeHtml in template #145

@mabaud

Description

@mabaud

<?= $escaper->escapeHtml($viewModel->getConfigProvider()->getRrDoShowContentJs()); ?>

=> It breaks the JS

Image Image

window.bvDCC = <?= /* @noEscape */ json_decode($configData) ?>;

It breaks the product page:

main.CRITICAL: Error: Object of class stdClass could not be converted to string in /.../vendor/bazaarvoice/bazaarvoice-magento2-ext/view/frontend/templates/productheader.phtml:55

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions