如何在php中使用正则表达式将新的字体标记转换为旧的字体标记


How to convert new font tag into old font tag with regular expression in php

我想转换这个字符串:

<span style="font-family: 'book antiqua', palatino, serif; font-size: 14pt; color: #ff9900;">Text Content</span>

进入:

<font face='book antiqua, palatino, serif' size='14' color='#ff9900'>Text Content</font>

如何使用正则表达式执行此操作?如有任何帮助,我们将不胜感激!谢谢

经过数小时的谷歌搜索,我终于在这个论坛上找到了这个问题的解决方案tinyMCE到AS3 htmlText