Re: save control characters in a session object

From: Andreas Bauer (buki_at_gmx.net)
Date: 02/23/04


Date: Mon, 23 Feb 2004 21:10:47 +0100


> Then the HTML page this produces will not care about any newlines in your
> strings. One way to get around the newline problem would be to, when you
> are displaying the strings, replace all "\n" characters with "<br/>".
> This will create the newlines for you in HTML.

>
> A better solution might be to wrap your formatted text with <pre>...</pre>
> tags. This attempts to preserve formatting as much as possible when
> displayed in the browser.
>

Ok, you're right. Thanks for the hint. I will try this.



Relevant Pages

  • replace tags sin html page
    ... I want to replace tags in html pages. ... I want to replace all the strings ... padding-top: 8px; ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Get text between A and B?
    ... > I want to read out several strings from an HTML file, ... > (also, things other than tags). ... Please use comp.lang.php for PHP related questions, ...
    (comp.lang.php)
  • Get text between A and B?
    ... I want to read out several strings from an HTML file, ... (also, things other than tags). ... I suppose some regex ...
    (comp.lang.php)