Hi everybody,
I fill a variable with html, once has been charged I need to add a "<br />" at the begining and at the ending of each link found in the variable. As an example "<a ......>.....</a>" to "<br /><a ......>.....</a><br />"
I use the regex expression "%(<a.*?>)%is" to find the initial link tag but I don't know how to tell the preg_replace to do the substitution with "<br /><a.*?>". The link closing tag is easier to do so....:).
Thanks.
PD: I don't know what I'm puting into the variable, that's why I have to do it afterwoods, once the variable is charged. Is like to be reading a text with html without knowing its content.