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
Clean up designmode....
Moderator: General Moderators
well......
The thing is the text entered in the editor will be displayed via flash, and it has a limited HTML support:
http://livedocs.macromedia.com/flash/mx ... 01040.html
Therefor I need the "old" tags.
http://livedocs.macromedia.com/flash/mx ... 01040.html
Therefor I need the "old" tags.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: well......
If the HTML support is limited now, imagine how bad it will be when the <b>, <i> and <u> tags are no longer supported at all? That is the direction of the HTML standard. In fact, <b> and <i> (or is it <u>) are already depricated. The recommendations are to use either <strong>, <em> or <span style="text-decoration: underline;">, I believe.mr.morton wrote:The thing is the text entered in the editor will be displayed via flash, and it has a limited HTML support:
http://livedocs.macromedia.com/flash/mx ... 01040.html
Therefor I need the "old" tags.