[phorm] [Phorm:] striphtml and textarea line breaks

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 30 May 2004 23:04:39 -0000

The following new message has been posted on Phorm Support Forum at 
<http://www.phorm.com/support/>. 

*************************************************************************** 

  MESSAGE:  (#4095) striphtml and textarea line breaks 
            <http://www.phorm.com/support/?rev=4095> 
  AUTHOR:   Bob Brody 
  DATE:     May 30, 2004 at 7:04 p.m. EST 

A few years ago you helped me out with creating a Preview screen of the form 
in that the problem I was having was textarea fields were not including line 
breaks in Preview and Thank You (and subsequent HTML email). Thus for 
instance, an address would Preview as: 

Joe Smith 345 Main Street Los Angeles 

etc, You provided this code for the respective fields in the config: 

$FmtSubaddy = ereg_replace(" ", "&nbsp;&nbsp;", ereg_replace("\n", "<br>\n", 
$subaddy)); 

I placed that for each respective field within my preview.cfg. That has worked 
great all along. Now comes the HTML stripper plugin and as you can probably 
imagine, it's stripping that <br> when I send the form. The Preview still has 
the <br> line breaks. But when I send the form (via the second config file), 
the Thank You page (which also displays the data) has no <br>'s and the 
textarea lines are one continuous line. Ditto the html email. 

I tried the &lt; and &gt; in the above line of code for <br> in the 
preview.cfg but of course, the Preview screen displays the brackets as text 
literal. And when I send the form via the second config (send.cfg), the 
program assumes it's html and the plugin strips it (thus the Thank You page 
and the html email have no line breaks for those textarea fields of data). 

So the words "gimme a break" come to mind. :) Do you have any suggestions? Can 
I make an exception in the plugin to let <br> through or handle this some way 
via configs? 

Thanks, 
Bob 

*************************************************************************** 

This is an automatically-generated notice.  If you'd like to be removed from 
the mailing list, please visit Phorm Support Forum at 
<http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx  If 
you wish to respond to this message, please post your response directly to the 
board.  Thank you! 
-------------------------------------------------
You are receiving this message because you are subscribed to the Phorm mailing 
list. To send messages to the mailing list, simply send email to 
phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe 
from the list by sending email to phorm-request@xxxxxxxxxxxxx with 
'unsubscribe' in the SUBJECT field.

Other related posts:

  • » [phorm] [Phorm:] striphtml and textarea line breaks