Start refactor
Fix problem for php code inside the attributes
Improve parsing