Clean up designmode....
Posted: Mon Jun 19, 2006 3:30 pm
Hi'
I use a WYSIWYG editor for a textarea and it works pretty but the HTML it makes i can't use
An example of what it produces:
<span style="font-weight: bold;"> Bold <span style="font-style: italic;">test <span style="text-decoration: underline;">test</span></span><br /></span>
But i would really like it to have this format instead:
<b> Bold <i>test <u>test</u></i><br /></b>
Does anybody know how to parse it in PHP to fix this?
Kind regards
Morten
I use a WYSIWYG editor for a textarea and it works pretty but the HTML it makes i can't use
An example of what it produces:
<span style="font-weight: bold;"> Bold <span style="font-style: italic;">test <span style="text-decoration: underline;">test</span></span><br /></span>
But i would really like it to have this format instead:
<b> Bold <i>test <u>test</u></i><br /></b>
Does anybody know how to parse it in PHP to fix this?
Kind regards
Morten