I have a page on my website that prints a plain text file in HTML. So, it
does something like this:

  print "<PRE>";
  open(FANFIC, "$file") or print "File not found: $!\n";
  print Apache::Util::escape_html($_) while (<FANFIC>);
  close(FANFIC);
  print "</PRE>\n";

I used to use $Server->HTMLEncode() instead of
Apache::Util::escape_html(), but I noticed that
Apache::Util::escape_html() could do it in 40 requests per second, as
compared to 30. AFAIK these two functions are semantically equivalent, so
perhaps $Server->HTMLEncode should use the same code as
Apache::Util::escape_html, which is compiled C code I believe?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to