Gossamer Forum
Home : Products : Others : Fileman :

dealing with things like &

Quote Reply
dealing with things like &
Hi

This is a quick and dirty hack but I have some sites I've done for clients and I've used things like · (&middot Wink and after a page has been edited by FileMan it makes the HTML invalid as · gets changed to ·, the way I have got round it is by adding this stuff to sub edit:

Code:
$lines =~ s/<\/TEXTAREA/<\/TEXT-AREA/ig;
$lines =~ s/&/&amp;/ig;
$lines =~ s/&middot;/&middot;/ig;
$lines =~ s/</&lt;/ig;
$lines =~ s/>/&gt;/ig;
$lines =~ s/&copy;/&copy;/ig;

I'm sure that someone at Gossamer-Threads could come up with some more elegant and something that did not involve a line for each one... perhaps in the next version? Smile

Chris
Subject Author Views Date
Thread dealing with things like &amp;amp; Chris Croome 2373 Sep 13, 1999, 12:39 AM
Post Re: dealing with things like &amp;amp;
Chris Croome 2306 Sep 13, 1999, 12:41 AM
Post Re: dealing with things like &amp;amp;
Alex 2307 Sep 17, 1999, 6:33 AM
Post Re: dealing with things like &amp;amp;
Chris Croome 2305 Oct 29, 1999, 5:57 AM