Reply to Re: innerHTML and PHP string parsing

Your name:

Reply:


Posted by Martin Jay on 04/12/06 18:10

In message <1144827521.971430.155160@u72g2000cwu.googlegroups.com>,
endlesstide@gmail.com writes
>Is there a PHP command to convert a $string of HTML into something
>friendly for innerHTML population? I get a undtermined string constant
>error sometimes.

The strip_tags() function will attempt to remove HTML tags form a
string.

But the htmlspecialchars() may be what you're looking for. It will
convert " to &quot; and ' to &#039; in a string, which may prevent the
problem you're seeing.
--
Martin Jay

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация