Can HTML objects be used in attributes?

I use slim and suddenly noticed that by default it skips everything. So, the anchor tag looks something like this:

<a href="&#47;users&#47;lyann&#47;followers">
<img class="user-image" src="http:&#47;&#47;adasdasdasd.cloudfront.net&#47;users&# 47;2011&#47;05&#47;24&#47;4asdasd&#47;asdasd.jpg" />

Can attributes be screened hrefand srchow is it? Are there any other consequences? All browsers seem to do this without a problem.

+5
source share
1 answer

Yes, that’s fine. Symbol references are also valid within attributes, and they will refer to symbolic characters equally.

For reference see:

+5
source

All Articles