Results 1 to 2 of 2
  1. #1

    Exclamation Special chars being appended to TinyMCE content in Internet Explorer?


    I'm having a bit of a problem here and have tried everything I know to get this to work.

    I've got a registration page where you get to compose a small HTML block using TinyMCE.

    After you submit, it takes you to a preview page. If you want to make changes, you click the "Make Changes" button, which is inside of a form where the HTML content is stored in a hidden field. Upon clicking the Make Changes button, it posts the hidden fields back to the main form page where all the data is placed back into their various form fields.

    The problem is that with Internet Explorer, as you click back and forth between Preview and Make Changes, special characters are appended to the end, such as the HTML string "�". These characters are then showing up on the preview screen, and consequently, the final product.

    I'm at my wit's end trying to figure this out. Any suggestions?
    The link to the page in questions is

    The code is being displayed on the Preview page by the following statement:

    PHP Code:
    Upon clicking "Make Changes", the code is then placed back into the form using the following statement:

    PHP Code:
    I've tried str_replace to remove the rogue strings, htmlentities, htmlspecialchars, utf8_encode, made sure the page encoding was utf8, even switching to the new CKEditor, only to discover the same result. Now these guys are in a panic because of this issue.

    To consider this solved, the page will not display those weird characters in the editor or on the preview page. Any assistance would be appreciated...thank you much.

  2. #2
    Join Date
    Jan 2006
    Athens, Greece
    This is how you get the code from tinymce:
    So you need to get this first and then validate the form.

    If you want to clean utf8 html content this function will do it:

    PHP Code:
    public function utf8_urldecode($str)
    html_entity_decode(preg_replace("/%u([0-9a-f]{3,4})/i","&#x\\1;"urldecode($str)), NULL'UTF-8');

Similar Threads

  1. Internet Explorer 8
    By The Dude in forum Computers and Peripherals
    Replies: 12
    Last Post: 02-01-2007, 07:04 PM
  2. Internet Explorer -> Tools -> Internet Options!!
    By lokodezine in forum Web Hosting Lounge
    Replies: 11
    Last Post: 01-30-2004, 01:56 AM
  3. Internet Explorer under *nix
    By Vox Hosting in forum Web Hosting Lounge
    Replies: 14
    Last Post: 12-16-2003, 09:01 PM
  4. Internet Explorer 6.0
    By SI-Chris in forum Web Hosting Lounge
    Replies: 16
    Last Post: 09-09-2001, 05:03 PM
  5. Internet Explorer %^#@%#@
    By MCHost-Marc in forum Web Hosting Lounge
    Replies: 15
    Last Post: 07-10-2001, 06:31 PM

Tags for this Thread

Posting Permissions

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