You are here: Re: htmlentities and single quote « All PHP « IT news, forums, messages
Re: htmlentities and single quote

Posted by StreetGifts on 01/12/07 16:30

Thanks ... issue I have is users are submitting HTML code with text and
simple words like "can't", "won't" and similar words are problematic -
thanks

"J.O. Aho" <user@example.net> wrote in message
news:50pqn8F1gllqfU1@mid.individual.net...
> StreetGifts wrote:
>> What would be the best advice for storing HTML data in to a MySQL
>> database?
>>
>> I've tried using 'htmlspecialcharacters' and 'htmlentities' for
>> converting before storing in to db, but when converting back, am always
>> having issues displaying the single quote properly ( ' )
>>
>> I want to be able to save HTML tags & content in to db. Using 'TEXT' as
>> field type.
>>
>> Am able to save, retrieve and display back to browser, but am having
>> difficulties w/ the single ' quote issue
>
> This is not a solve for your problem, but I would advice you to use double
> quotes in html tags, even if single quotes are valid, there are browsers
> that don't handle single quotes properly, but the same tags with double
> quotes works fine.
>
> --
>
> //Aho

 

Navigation:

[Reply to this 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

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