From: Yang W. <wangy@u.washington.edu> - 2004-11-29 21:27:16
|
Thanks very much for your help. It was my escape flag. <% $content |n %> worked this time.=20 Yang -----Original Message----- From: Jeremy Blain [mailto:je...@be...]=20 Sent: Monday, November 29, 2004 12:06 PM To: Yang Wang Cc: mas...@li... Subject: Re: [Mason] Display html This could be 3 things. First, the html may be being escaped: check your escape flags, and make = sure html escape isn't set to automatically be used. Second, it may be sending the wrong content type header, which may cause = the browser to display it as text. Third (this one is unlikely, but possible), if you're using IE as the=20 browser, it may be guessing at the content type, ignoring what the server says and doing something funny with it. Yang Wang wrote: >Hello: > >I parsed a XML file in an autohandler and got some html code stored in=20 >a varible $content. I want to display the webpage by calling <%=20 >$content %>. In my browser, the html code is displayed, instead of the=20 >webpage coded by the html. For example my page looks like "<div=20 >class=3D"content4"> <table width=3D"100%" border=3D"0" = cellspacing=3D"0"=20 >cellpadding=3D"0"> <tr> ........". > >In my apache conf file, I have >"AddType text/html .xml" for the folder that doing this process. > >I have also tried using <% $content |h %>... > >All I want to do is to reconstruct a webpage using my varibles. > >Thank you very much > >Yang > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real=20 >users. Discover which products truly live up to the hype. Start reading = >now. http://productguide.itmanagersjournal.com/ >_______________________________________________ >Mason-users mailing list >Mas...@li... >https://lists.sourceforge.net/lists/listinfo/mason-users > =20 > |