I'm creating some pretty involved websites where I insert the contents of a wordpress 'page' directly into a page display element. (example would be a custom entry in the footer...) Its absolutely essential that we can use html code within our pages without errors. This enables our admins to make minor upgrades without having to recode a template. Generally they add or edit links or images on the site, nothing more fancy than that.
Unfortunately I'm having lots of issues with content being mangled upon delivery. (inspected in firebug or chrome dev tools.) Not sure what is going on.
I'm very well aware of the TinyMCE Advanced Plugin from Andrew Ozz. Got that puppy plugged in and I'm using the HTML button as well as the setup checked for "Stop removing the
<br/> tags when saving and show them in the html editor" The system still generates the
<p> tags, but at least I can see where they are.
I'm also familiar with https://codex.wordpress.org/TinyMCE#Customize_TinyMCE_with_Filters At first four glances it would appear that any customization mods done via the codex would interfere with the Ozz TinyMCE Advanced Plugin, so I've shut any custom work there. I've also verified that the theme I'm using isn't doing the mangling. In fact when I check what's stored in the page, it looks clean there. What's not clean is the output on the web page.
Here is a simple example, a html comment symbol. The sample is
<!-- hide this link
-->. The html view button shows EXACTLY this code. When you go to the web page and look at the generated code you get
--> is converted to garbage. Same thing happens to a lot of my characters, single quotes get changed to
’, double quotes to
Anybody know what is going on? Is this an ascii vs UTF issue? Is this a database setup error, perhaps using the wrong character storage type? I just checked the database and phpMyAdmin tells me that the "Server Connection Collation" is "utf8_general_ci". Is this correct? Ouch.. I just checked the data within the database, and the errors are not apparent there.
--> looks just like
Many thanks for any insight you guys might provide.. Zip.