A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How to replace <font face=Verdana> wirh <font face="Verdana"> with php

  1. #1
    Senior Member Vincent26381's Avatar
    Join Date
    Feb 2003
    Location
    The Netherlands
    Posts
    833

    How to replace <font face=Verdana> wirh <font face="Verdana"> with php

    Hi,

    I'm making a sort of outlook clone in Flash and have come pretty far but the flash player is very strict when it comes to html. I've stripped and replaced a whole lot and urlencode it to display it nicely.

    The problems comes with for example this:

    <font face=Verdana>some text</font>

    The flashplayer simply ignores the text then.

    is there a way to replace it like this:

    <font face="Verdana">some text</font>

    and then for every font, color, allignment, etc

    You would be a huge help!

    thanks,

    Vincent
    Vincent
    SWIS BV

    Last edited by Markp.com on 07-23-2003 at 02:25 AM

  2. #2
    Member
    Join Date
    Aug 2003
    Posts
    30
    echo "<font face=\"verdana\">some text</font>\n";

    or:

    echo "<font face='verdana'>some text</font>\n";

    Is that what you meant?

  3. #3
    Senior Member Vincent26381's Avatar
    Join Date
    Feb 2003
    Location
    The Netherlands
    Posts
    833
    No, but thanks

    The html comes from the mailserver and is displyed with PHP to be loaded in Flash (html textbox).

    When someone is using a rich text editor (hotmail for example) the source of the mail is a mess and the flashplayer is very strict.

    I think I covered a whole lot but I can't find anything for these tags that should have the color, font type, allignment, etc in quotes but simply haven't.

    I need to convert it somehow.

    Thanks
    Vincent
    SWIS BV

    Last edited by Markp.com on 07-23-2003 at 02:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center