Gossamer Forum
Home : Products : Links 2.0 : Discussions :

HTML OK in links description?

Quote Reply
HTML OK in links description?
 
I've been clicking out of this forum to differen't peoples sites with Links2 installed and I am seeing
HTML in the description area of some links. Even in the Resource section of this site I see some HTML
stuff like <pre> and <a href> links. I just presumed that you couldn't include HTML.
I would try it myself out now but I have already deleted the default installation of Links i just installed
last night because I'm moving to a new hosting company today. So is HTML allowed in the description
field?

thanks


Quote Reply
Re: HTML OK in links description? In reply to
Yes. Although not recommended as it will fill up links.db

You would be better adding regex into site_html_templates.pl

Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Quote Reply
Re: HTML OK in links description? In reply to
 
Um.....what is regex? : ) And how do I add it to site_html_template?

I promise it's the last question from me for today!

thanks

Quote Reply
Re: HTML OK in links description? In reply to
Well if for example you wanted a certain word bolded you would add this under:

Code:
my (%rec) = @_;
...in site_html_link

Code:
$rec{'Description'} =~ s,(WORD),<b>$1</b>,ig;
Regex is to do with pattern matching.

Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/