|
|
|
|
|
All times are GMT
|
|
|
HTML breaking in PDF creation in Enterprise version
|
Fri Oct 26, 2007 5:26 pm
|
|
ashworth102680
Joined: 25 Oct 2007
Posts: 21
Location: Vancouver, WA
|
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)
|
|
|
|
|
Fri Oct 26, 2007 5:39 pm
|
|
ashworth102680
Joined: 25 Oct 2007
Posts: 21
Location: Vancouver, WA
|
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.
|
|
|
|
|
Fri Oct 26, 2007 8:22 pm
|
|
LinkAssistant
Site Admin
Joined: 26 Sep 2005
Posts: 874
|
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
|
|
|
|
|
Fri Oct 26, 2007 8:24 pm
|
|
ashworth102680
Joined: 25 Oct 2007
Posts: 21
Location: Vancouver, WA
|
Thanks. Good luck. I think we know 100% the issue, it's just a quick function that's needed.
WA
|
|
|
|
|
|
|
Back To Top
|
|
|