in reply to Re: Re: HTML printing
in thread HTML printing
The first example prints the '&' as displayed, plain text.
The second example prints the '&' inside an HTML tag:
The HTML '&' entity does have its use. A prime example of which is the fact that I had to type '&amp' to get the third word in the previous sentence to appear correctly!print "Let's show a query string: ?key1=one&key2=two\n"; print "<a href='$my_url?key1=one&key2=two'>Click here</a>\n";
Update: This is bad advice!! Read the next post for the correction. (This post left in place so that Randal's next post will make sense.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: HTML printing
by merlyn (Sage) on Feb 17, 2001 at 10:01 UTC | |
by dvergin (Monsignor) on Feb 17, 2001 at 10:14 UTC |