[PHP] wordwrap function (that skips html tags)

2002-09-03 Thread [EMAIL PROTECTED]
hello! i found a nice function that i would like to use but unfortunately there is a problem i can not solve. for my notepool device it would be great to use php's wordwrap function but because the string that needs to be wordwrapped contains also html tags i can not use this function like

Re: [PHP] wordwrap function (that skips html tags)

2002-09-03 Thread Bas Jobsen
Hello, What's your php version? Take at look at: http://www.php.net/manual/en/function.wordwrap.php and http://www.php.net/manual/en/function.strip-tags.php b.e. $str='http://www2.snm-hgkz.ch/~rieger/notepool/addnote.php'; echo wordwrap(strip_tags($str),8,'br',1); i you can't use wordwrap(),