[237257] new line char displayed as <br />
diff --git a/html/callback/getCurrentStringTranslation.php b/html/callback/getCurrentStringTranslation.php
index 4422807..a104fc3 100644
--- a/html/callback/getCurrentStringTranslation.php
+++ b/html/callback/getCurrentStringTranslation.php
@@ -142,7 +142,7 @@
[<a id="copy-english-string-link">Copy</a>]
</h4>
<div style='overflow: auto; height: 80px;'>
- <b><?= htmlspecialchars(nl2br($line['string_value']));?></b>
+ <div id="english-string"><?= nl2br(htmlspecialchars($line['string_value'])); ?></div>
</div>
<h4 id="translation-hints-title">Translation Hints</h4>
<div id="translation-hints" style='overflow-x: hidden; overflow-y: auto; height: 80px;'>
@@ -187,7 +187,7 @@
while($line = mysql_fetch_array($res_history, MYSQL_ASSOC)){
print "<tr>";
print "<td width='40%'>";
- print "<div>".htmlspecialchars($line['value'])."</div>";
+ print "<div>".nl2br(htmlspecialchars($line['value']))."</div>";
print "</td>";
print "<td width='20%'>";
print $line['first_name']." ".$line['last_name'];
diff --git a/html/callback/getStringsforProject.php b/html/callback/getStringsforProject.php
index ddd864b..76b992c 100644
--- a/html/callback/getStringsforProject.php
+++ b/html/callback/getStringsforProject.php
@@ -142,15 +142,15 @@
if(isset($stringids[$line['stringId']])){
continue;
}else{
- $line['text'] = htmlspecialchars(($line['text']));
+ $line['text'] = nl2br(htmlspecialchars($line['text']));
if(isset($string) && $line['stringName'] == $string){
$line['current'] = true;
}
else {
$line['current'] = false;
}
- $line['translationString'] = htmlspecialchars(($line['translationString']));
- $line['translator'] = htmlspecialchars(($line['first']." ".$line['last']));
+ $line['translationString'] = nl2br(htmlspecialchars($line['translationString']));
+ $line['translator'] = nl2br(htmlspecialchars($line['first']." ".$line['last']));
if($line['non_translatable']){
$line['translationString'] = "<span style='font-style: italic;'>non-translatable string";
$line['nontranslatable'] = true;