Explain what &quot means

I can’t find a clear explanation of what it means when a value/variable is surrounded by ‘&quot’ and why it happens.

For example, I have a simple function which returns an array containing an id.

return [params[:id]]

For some reason, it returns:

["4"]

not:

[4]

which I would have expected.

Can someone explain what ‘&quot’ is and why/how they are inserted?

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)