On Jan 10, 8:13 pm, zweb wrote:
> Javascript:
> document.getElemnetById(’textareacontent’).value.replace(/\n/
> g,’’);
> PHP:
> preg_replace(”/\n/”,””,$_REQUEST['t1']);
> Ruby:
> (teaxtareacontent).gsub(/\n/,””)
>
> ( reference
> -http://rkutti.wordpress.com/2008/01/31/display-textarea-content-w
Javascript:
document.getElemnetById(’textareacontent’).value.replace(/\n/
g,’’);
PHP:
preg_replace(”/\n/”,””,$_REQUEST['t1']);
Ruby:
(teaxtareacontent).gsub(/\n/,””)
( reference -
http://rkutti.wordpress.com/2008/01/31/display-textarea-content-with-line-breaks-in-html-page/)
--~--~-~--
2 matches
Mail list logo