SEO Software Talk Forum Index Rank Tracker Discussion
HTML breaking in PDF creation in Enterprise version
View previous topic :: View next topic
Display posts from previous   
All times are GMT
Post new topic  Reply to topic  
HTML breaking in PDF creation in Enterprise version Fri Oct 26, 2007 5:26 pm
ashworth102680
I am noticing HTML code breaking when double quotes are used. Is it possible that the programmer didn't escape double quotes with a backslash? (see attached)

View user's profile Send private message Reply with quote
Fri Oct 26, 2007 5:39 pm
ashworth102680
So it appears this is the code in the template to output the data...

Code:
<a href="<[ECHO text="singlePage ? '#' + reportData.getPageName(PAGE_BY_KEYWORD) + '_' + keyword.query : reportData.getPageName(PAGE_BY_KEYWORD) + '.' + reportData.getPageExtension() + '#' + reportData.getPageName(PAGE_BY_KEYWORD) + '_' + keyword.query"/]>" class="blcolor"><[ECHO text="keyword.query"/]></a>


We need to have a function given to us by Rank Tracker staff that does this. I'll show by PHP example:

Code:
<?php
function escapeDoubleQuotes($keyword) {
   str_replace('"','\"',keyword.query);
}
$newKeyword = escapeDoubleQuotes('keyword.query');
echo $newKeyword;
?>


I wouldn't change keyword.query, cause we need it clean for other uses, but we should have a function that the templates understand that escapes double or single quotes.
View user's profile Send private message Reply with quote
Fri Oct 26, 2007 8:22 pm
LinkAssistant
Thanks A LOT for helping us and reporting this issue, ashworth102680.

We do our best to fix the problem in the nearest update update.
_________________
Search Engine Optimization Software
View user's profile Send private message Reply with quote
Fri Oct 26, 2007 8:24 pm
ashworth102680
Thanks. Good luck. I think we know 100% the issue, it's just a quick function that's needed.

WA
View user's profile Send private message Reply with quote
Post new topic  Reply to topic  
Back To Top
Page 1 of 1
Jump to:  
Powered by phpBB
Copyright 2007, Link-Assistant.Com — The Amazingly Effective SEO Tool