Convert html tags to string php -


i have been trying following long time , haven't been able figure out.

i have string in php contains html in follows example:

$var = "<div style="display:inline">how</div>         <div style="display:none">are</div>         <div style="display:inline">you</div>         ?"; 

and store in string $var2, "howyou?"; basically, i'd render html in php in sense.

how go doing this?

thanks

try use ' instead of " inside string that:

$var = "<div style='display:inline'>how</div>         <div style='display:none'>are</div>         <div style='display:inline'>you</div>         ?"; 

it must work now


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -