Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 0 down vote accepted

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

http://www.silverstripe.org/dataobjectmanager-module-forum/show/9482?start=32#post293190

share|improve this answer

Your Answer

 
discard

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.