php - Any tag closed after span does not let span do it's required work -
whenever have span tag colors text green , there tag closing after span like:
</strong> or </i> or </b>,
the span tag not color text green. example code is:
newly written <span style="color: green;"> <br /> <br /></span> <strong> ab <span style="color: green;"> </strong> <ol> <li> marium </li> <li> <strong> malik </strong> </li> <li> <strong> new </strong> </strong> </li> </ol></span>
this code auto generated function, finds newly added strings , colors them green, cannot change html. there solution it?? know problem of tag closing after span , have mentioned cannot change html, want know whether there solution or not.
can php whenever tag closing after span tag, should switch places?
newly written <span style="color: green;"> if had text here , not empty spaces<br /> <br /></span> <strong> ab <span style="color: green;"> empty spaces here, so, no color</strong> <ol> <li> marium </li> <li> <strong> malik </strong> </li> <li> <strong> new </strong> </strong> </li> </ol></span>
https://jsfiddle.net/e0nl1ynt/
i don't know how algorithm generates spans working, see <br>
, empty spaces being surrounded styled spans
Comments
Post a Comment