Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Perl CGI, font color in a table

by oko1 (Deacon)
on Feb 28, 2012 at 06:27 UTC ( #956587=note: print w/ replies, xml ) Need Help??


in reply to Perl CGI, font color in a table

Question #1 is, why are you doing an 'escapeHTML' on a plain-text string? Unless you're defanging arbitrary input, it's not very useful - and getting rid of it would make your life much easier.

Having said that, there is a (less-than-pretty) solution: </p?

print td("font color='red'>".escapeHTML("required")."</font>");
-- 
I hate storms, but calms undermine my spirits.
 -- Bernard Moitessier, "The Long Way"


Comment on Re: Perl CGI, font color in a table
Download Code
Re^2: Perl CGI, font color in a table
by Sinistral (Prior) on Feb 28, 2012 at 13:49 UTC

    This works, of course, but I want to make sure that the OP knows that using the font tag is very much deprecated in web design. Use the ideas later in this thread where an inline style (marginally preferable) or a CSS class (much preferable) is used along with an associated definition of the CSS class.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://956587]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2014-07-10 06:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (202 votes), past polls