I'm trying to add a review WITH html code in the description field, but when displaying the review it just shows the CODE and not the actual HTML. is there any hack to be able to insert HTML in a description field and have it show properly when displaying the review?
Jun 9, 2003, 8:23 AM
Veteran / Moderator (18441 posts)
Jun 9, 2003, 8:23 AM
Post #2 of 6
Views: 2051
Just enter the HTML in that field, and then make a new global. Something like;
Review_with_HTML =>
my $review = shift;
my $_review = unescape_html($review);
return $_review;
}
Call it with something like;
<%Review_with_HTML($FieldName)%>
Hopefully that will work
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Review_with_HTML =>
Code:
sub { my $review = shift;
my $_review = unescape_html($review);
return $_review;
}
Call it with something like;
<%Review_with_HTML($FieldName)%>
Hopefully that will work
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!