Invalid character ($) encountered while parsing (tag "?" with attributes). Invalid character ($) encountered while parsing (tag "?" with attributes). Invalid quoted string ' . str_replace(' encountered while parsing (tag "A" with attributes class=a).