You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a widget that simply returns a URL to be used as the value of an anchor's href attribute. When debugging comments get injected, they end up inside the href value, which breaks the link. (HTML comments are not allowed inside HTML attributes or tags.)
Preconditions
magento/product-enterprise-edition: 2.2.5 via composer
Composer version 1.7.2 2018-08-16 16:57:12 via homebrew
Steps to reproduce
Create a widget template (referenced as Foo_Whatever::widget/link/href-only.phtml):
I have a widget that simply returns a URL to be used as the value of an anchor's
href
attribute. When debugging comments get injected, they end up inside thehref
value, which breaks the link. (HTML comments are not allowed inside HTML attributes or tags.)Preconditions
Steps to reproduce
Foo_Whatever::widget/link/href-only.phtml
):Expected result
href
value shouldn't be broken.Actual result
Would it be possible to optionally skip marking CMS variables? Or maybe allow for an admin-defined blacklist of templates to skip wrapping?
The text was updated successfully, but these errors were encountered: