rainmotorsports
Well-known member
I have a string extracted from a given image with line breaks intact like so:
This is displayed from an associative array in the template like this:
I couldn't get $text to display at all so I did a dump using {xen:helper dump, $text} and got this:
So I am not sure how to go about this but {xen:raw $text} gives me:
Is there anyway to put this variable in there with its line breaks intact? I mean they seem to show in the dump just the way I would want it.
PunkBuster Screenshot (�) BF4 XP2/Levels/XP2_001/XP2_001
1515139 :25200 **ALL RUSH MAPS 24/7 | BF4 + DLC | TBGCLAN.COM | GAMEME
*15048ed5751dcacb2xxxxxxxxxx* xgp15a3
Attempted: w=320 X h=240 at (x=50%,y=50%)
Resulting: w=320 X h=200 sample=1
This is displayed from an associative array in the template like this:
Code:
<xen:foreach loop="$globFiles" key="$img" value="$text">
{$img}
<p><img src="http://www.tbgclan.com/data/pbss/{$img}"></p>
{$text}
</xen:foreach>
I couldn't get $text to display at all so I did a dump using {xen:helper dump, $text} and got this:
Code:
string(261) "PunkBuster Screenshot (�) BF4 XP2/Levels/XP2_001/XP2_001
1515139 :25200 **ALL RUSH MAPS 24/7 | BF4 + DLC | TBGCLAN.COM | GAMEME
*15048ed5751dcacb2xxxxxxxxxx* xgp15a3
Attempted: w=320 X h=240 at (x=50%,y=50%)
Resulting: w=320 X h=200 sample=1
"
So I am not sure how to go about this but {xen:raw $text} gives me:
Code:
PunkBuster Screenshot (�) BF4 XP2/Levels/XP2_001/XP2_001 1515139 74.91.115.207:25200 **ALL RUSH MAPS 24/7 | BF4 + DLC | TBGCLAN.COM | GAMEME *15048ed5751dcacb2a4cdab03040f158* xgp15a3 Attempted: w=320 X h=240 at (x=50%,y=50%) Resulting: w=320 X h=200 sample=1
Is there anyway to put this variable in there with its line breaks intact? I mean they seem to show in the dump just the way I would want it.
Last edited: