Jan 08
Patrick Larkin Displaying encoded and non-encoded data
Jan 08, 2013; 12:19
Patrick Larkin
Displaying encoded and non-encoded data
I'm really struggling with this and always have.
I need to two things with data pulled from MySQL:
1. Display links as HTML and not as encoded symbols
2. Display line breaks in multiple paragraph text
Both seem mutually exclusive. :)
Here is a segment of code with lots of extra stuff taken out. As an example, the contents of the "storyText" field is
<a href="http://www.google.com">Google</a> (In database not encoded)
-------------
records(-InlineName='MyInline');
var('story') = field('StoryText');
var('story')->(Trim);
'<div class="homepage_2_alert">';
'<p>' + Encode_Break(var('story')) + '</p>';
'</div>';
/records;
-------------
You'd think this would work. It shows encoded HTML and not a link. If I take out the "Encode_Break", it shows a link but then loses all of the paragraph breaks. I tried adding -EncodeNone in different places but I just seem to break everything. Can someone help?
Patrick Larkin
Developer/Administrator of Special Systems / Webmaster
Bethlehem Area School District
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Jan 08
Marc Vos Re: Displaying encoded and non-encoded data
Jan 08, 2013; 18:48
Marc Vos
Re: Displaying encoded and non-encoded data
Jan 08
Patrick Larkin Re: Displaying encoded and non-encoded data
Jan 08, 2013; 13:09
Patrick Larkin
Re: Displaying encoded and non-encoded data