Quotation Marks Being Stripped On Live Server

Hi,
I’m new to PHP so please be gentle, I also have a bad hangover so please speak softly…

Quotation Marks on some of my html entities are being stripped on my hosts live server, looks like they are performing some kind of parsing as whitespace is also being removed (which I think is pretty good though).

PHP Version is 5.4.38 and Apache 2.2.29, Cpanel Linux Hosting.

Looks like it’s only affecting div id’s and classes but not all of them.

I do not have this issue locally running IIS.

Can someone please assist…

Thanks!
bOO

[size=6pt]To help you better it would be beneficial to post some code that you think is causing the problem.[/size]

Hi,
Well I’ve just tried a plain .html page and it still happens, also html comments are also being stripped so I assume they are running some kind of html compressor / optimizer.

So not a php issue, am waiting to hear from them.

Thanks.

Hi,
Ok it turns out to be Gzip via Apache, looks like the quotation mark removal is by design.

Whether or not I’m ok with is, will have too look into it further.

Thanks

I stand corrected, my hosting provider now informs me it is due to:

mod_pagespeed

PageSpeed Module

PageSpeed speeds up your site and reduces page load time. This open-source webserver module automatically applies web performance best practices to pages and associated assets (CSS, JavaScript, images) without requiring that you modify your existing content or workflow.

Thanks

Sponsor our Newsletter | Privacy Policy | Terms of Service