pfcode
pfcode

Reputation: 35

PhpStorm HTML inspection issue

I can't figure out why PhpStorm IDE is treating src HTML attribute as a JavaScript code (or a kind of regular expression). After code inspection this error is assigned to "JavaScript validity issues".

Have someone resolved this error before? Can I solve it some other way than turning off inspection?

Expression statement is not assignment or call

Upvotes: 0

Views: 87

Answers (1)

pfcode
pfcode

Reputation: 35

As @LazyOne wrote, the solution to this issue was to uncheck the xml: img/@src language injection in Settings/Preferences | Editor | Language Injections:

PhpStorm preferences

Upvotes: 1

Related Questions