p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

beginning_php thread: text2html


Message #1 by Simon Martel <simon.martel@s...> on Thu, 23 May 2002 12:41:12 -0400
Is any body know a function or a class who does the text to html conversion?
-- 
Simon Martel
simon.martel@s...

Message #2 by "Nikolai Devereaux" <yomama@U...> on Thu, 23 May 2002 09:54:42 -0700
> Is any body know a function or a class who does the text to html 
> conversion?

uh...  huh?

what kind of conversion are you talking about?

Here's links to some possibly useful functions:
  http://www.php.net/htmlentities
  http://www.php.net/htmlspecialchars
  http://www.php.net/nl2br

nik

Message #3 by "Duncan Hutty" <duncanh@h...> on Thu, 23 May 2002 14:21:37 -0400
>Is any body know a function or a class who does the text to html
conversion?

If the text format is just plain text, then it needs no conversion to html
and it will be formatted as is, if output by php - don't forget to use
htmlspecialchars().

If it's not plain text (e.g. <wince> Word document </wince>, Rich Text
Format, PDF, etc., etc.)  then you need a conversion tool. If this is what
you mean, please explain what you're trying to do.

Duncan Hutty


  Return to Index