Re: escape html whitespace

Sam Tregar <[email protected]> Fri, 30 Mar 2007 18:22:02 -0400 (EDT)
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
On Fri, 30 Mar 2007, Matt Taylor wrote:

> I couldn't find this information in the archive...
>
> I like the ESCAPE options (HTML, URL, JS).
>
> Is there a way to also escape whitespace?  In particular, I would like
> an easier way to replace spaces with &nbsp;
>
> Currently looping through data from dbi and replacing.  Any ideas?

Don't do that?  &nbsp; really shouldn't be needed in modern HTML
layout.  Maybe you can show us what you're using it for and we can
suggest a better way?

-sam

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV