When doing this job in PHP,one may meet this kind of issue:
\">...
The problem is that if
The Bat tool has a StringTool::htmlAttributes ( $arrayOfAttributes ) method that does the job too.
https://github.com/lingtalfi/Bat/blob/master/StringTool.php