0
Welcome Guest! Login
0 items Join Now

SOLVED HTML characters getting added when I save documents

  • SOLVED HTML characters getting added when I save documents

    Posted 11 years 4 months ago
    • Sorry for the terrible subject, but I couldn't think of how to simply explain the problem, but this is what happens when I save a document:

      <a href=" twitter.com/TopPokerValue " class="twitter-follow-button" data-show-count="false">Follow @TopPokerValue</a>

      becomes

      <a href=\" twitter.com/TopPokerValue\ " class=\"twitter-follow-button\" data-show-count=\"false\">Follow @TopPokerValue</a>

      For some reason, each " is replaced by \". Also, \&quot; is being added within quotations in some instances, like in this example:

      <table cellspacing="1" cellpadding="1" align="right">

      becomes

      <table cellspacing="\&quot;1\&quot;" cellpadding="\&quot;1\&quot;" align="\&quot;right\&quot;">

      Obviously, this completely screws up the code and changes the appearance on the front-end. I first noticed it in a document using {source} from Sourcerer. I disabled Sourcerer, but the problem still exists.

      The reformatting occurs both in articles and Custom HTML.

      I did recently update JCE, so that could be the cause. However, the problem happens when I save documents using TinyMCE also.

      Obviously there is a substitution happening, but I cannot determine the cause. Any assistance you can offer would be appreciated!
    • Last Edit: 11 years 4 months ago by Todd MacAdam.
  • Re: SOLVED HTML characters getting added when I save documents

    Posted 11 years 4 months ago
    • Site: toppokervalue.com/test

      You can see the screwed up code in the top right, where my social buttons are. If you look at the source code, the problem occurs on lines 190, 193-195, 200, and 207.

      This automatic substitution happens any time I save a document.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED HTML characters getting added when I save documents

    Posted 11 years 4 months ago
  • Re: SOLVED HTML characters getting added when I save documents

    Posted 11 years 4 months ago
    • I've got those lines of code already in my php.ini file and .htaccess file. I've been working on this test site for quite some time, but this problem only recently started.
  • Re: SOLVED HTML characters getting added when I save documents

    Posted 11 years 4 months ago
    • Anyone have any other ideas?
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED HTML characters getting added when I save documents

    Posted 11 years 4 months ago
    • Speak to your host for the best method of disabling magic quotes.
  • Re: SOLVED HTML characters getting added when I save documents

    Posted 11 years 4 months ago
    • I've contacted my host, but I don't think the issue is related to them. I've never had this problem before, and it does not happen on my main site, just the /test site. I can confirm that I did recently update JCE, but I've just disabled it and tried saving a file using TinyMCE and the substitution still occurs.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED HTML characters getting added when I save documents

    Posted 11 years 4 months ago
    • I don't think that this has something to do with the theme.
      You could disable all editors and you still will get the same result.
      You could google for the issue and you won't find other results than that its a matter of hosting and magic_quotes.
      You could try reinstalling the the latest versions of all things.
      But probably it won't help.
  • Re: SOLVED HTML characters getting added when I save documents

    Posted 11 years 4 months ago
    • Thanks Henning. My host is taking a look at it now. If he's able to resolve it, I'll post the solution here incase anyone else runs into the same problem.
  • Re: SOLVED HTML characters getting added when I save documents

    Posted 11 years 4 months ago
    • I'm also having this issue. Thought it was from upgrading to J3.0 and Graffito. But I also just installed JCE because I couldn't get JCK or any other editors to show the editing buttons. Hmmm. Let me know if you resolve this. BTW- my client is on DirectNIC.

      Headed to JCE to see if they know if the issue...

      Best,
      Tiff

Time to create page: 0.059 seconds