I want to store the content of a web site in the database, so I am using BBCode for the links, images, etc.
I need the following result:
<img class="blockcenter" src = "elements/Canadian_Flag.jpg" alt="Canadian_Flag.jpg" >
/* CSS centers the image */
from the BBCode:
<img src=" class="blockcenter" photos/atackadstargetyoy.jpg" alt="Canadian_Flag.jpg" />
So you see how it is mangled.
I am not sure if there is a solution in the PHP, I suspect it is in using something different for my CSS to center images. But it is close to midnight in Toronto and I am tired I hope it is a quick spot and someone can get me going again.