In Reply To:
Just like in the reviews options page, can we please have the same 'Convert line breaks to <br /> tags' option but for description column.
Will save the use of another global to achieve this.
Well, yes, and no. You might save the global call, but you'd still have to call it and check for it in the code.
The way the logic of Glinks is going, this sort of display change would be better off done in the templates, not the code.
Escaping output is a *better* concept from security as well, and makes you think about what you are doing/showing in the User end.
Since the number of fields added to GLinks is pretty arbitrary and unlimited, trying to modify the code in each place is unrealistic.
Moving this <%preserve_line_breaks%> or, better yet, <%preserve_html ('BR', 'P', 'N')%> etc, to preserve only paragraphs, or all line breaks makes more sense. (Allowing the use of html BR and P tags preserved gives some added formatting options)
If this was an internal routine, then for the standard links fields you could use a flag to set them in the Admin, but it would still be more uniform to modify the templates, and do it there.
Just a thought.
PUGDOG� Enterprises, Inc. The best way to contact me is to
NOT use Email.
Please leave a PM here.