Answer the question
In order to leave comments, you need to log in
Tell me the principle of writing a code converter
Incoming data:
<wrap width="600" align="center" clear>
<col>
<row>text</row>
<row>text 2</row>
<row><img width="200" height="100" clear></row>
</col>
<separator height="20">
</wrap>
<table width="600" align="center" cellpadding="0" cellspacing="0" style="border-collapse:collapse;">
<tr>
<td>text</td>
<td>text 2</td>
<td><img width="200" height="100" style="display:block; border:0;"></td>
</tr>
<tr>
<td height="20"></td>
</tr>
</table>
Answer the question
In order to leave comments, you need to log in
In fact, if you can replace one occurrence in a string with another, it's better to pull the data out of the (x)html structure and store it separately. You can then display them in any view. How to pull? As suggested above XSLT, if you are more familiar with selector syntax you can use a library like symfony/CssSelector
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question