Invisible HTML entities in css files

I created a new css file and added some code, but it didn't display. In a git diff, I can see the brackets are HTML entities:

.js-media-library-item {&#10  position: relative;&#10  display: inline-flex;&#10}&#10&#10body {&#10  color: black;&#10}&#10&#10asdf {&#10&#10}&#10

Looks like it's not treating it as a css file and is converting html entities to display the code in phpstorm.

This has happened to me before, I think I fixed it by restarting PHP storm. But I don't have a clue how I triggered it.

0
3 comments

It is a line feed character: https://stackoverflow.com/questions/3025265/what-does-unicode-character-10-represent

 

> Looks like it's not treating it as a css file and is converting html entities to display the code in phpstorm.

 

What exactly does this CSS file look like? Is it parsed or displayed incorrectly?

0

My file appears to contain only css in phpstorm. I can only see the html entities in vim or another editor.

0

Please sign in to leave a comment.