Fix bug on php variables in texts and attributes