Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having problems with third party HTML on a XAMPP based development webserver. The code produces garbage in the browser because it is filled with dubious nested quotes as follows...

<a href="$Link" title="<% sprintf(_t("READMORE","Click here to read more on &quot;%s&quot;"),$CartTitle.XML) %>">...</a>

I either need a script to bulk fix script so the code is like this (send me to Stack Overflow?):

<a href="$Link" title="<% sprintf(_t('READMORE','Click here to read more on &quot;%s&quot;'),$CartTitle.XML) %>">...</a>

OR a better understanding of the problem and a workaround because obviously other webservers handle this just fine.

This is Silverstripe (php) with asp style tags in it's templates, if that is relevant. I think it is a *nix vs windows problem but the keywords I search ("nested quotes?") produce nothing. Worse still, I know I've fixed this before! Thanks in advance.

share|improve this question
up vote 0 down vote accepted

Turns out it was a Silverstripe specific problem with sprintf on windows XAMPP.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.