|
|
Seo forumsSEO generalSEO scripts SEO tools Optimization Pagerank Dance Adsense Adwords Yahoo!NewsOptimization MicrosoftNewsOptimization MarketingCoop networkPromotion Affiliations Domain names Link popularity Link exchange Directories Buy & sell Services Freebies DevelopmentProgrammingServer issues Multimedia Javascript Databases Security HTML AJAX CSS PHP OtherSearch enginesTraffic ranking Robot spiders E-Commerce Site reviews Keywords Misc.WelcomeSuggestions Miscellaneous Register Membership Links Help About ![]() |
PHP htmlspecialchars()
string htmlspecialchars (string $string [, int $quote_style [, string $charset [, bool $double_encode]]])Many HTML character entities must be written in a certain way. This function converts some of these characters. To translate every HTML character entities you may use the htmlentities() function. This function is particularly useful to avoid that users can post HTML markup in a forum, in this case one it is recommended to use a BBcode-like function that can allow users to type in example [i] instead of <i>. By using the htmlspecialchars() function '&' (ampersand) will become '&' '"' (double quote) will become '"' if ENT_NOQUOTES is not set. ''' (single quote) will become ''' if ENT_QUOTES is set. '<' will become '<' '>' will become '>' The quote_style argument (optional) tells the function what to do with the single and double quote characters. By default the mode is ENT_COMPAT, it only translates the double-quote character, the single-quote remains untranslated. If ENT_QUOTES is set, both single and double quotes are translated, if ENT_NOQUOTES is set neither single nor double quotes are translated. The charset argument (optional) defines the character set used in conversion. By default the character set is ISO-8859-1 but you may also use these character sets, supported in PHP 4.3.0 and later. ISO-8859-1 ISO8859-1 Western European, Latin-1 ISO-8859-15 ISO8859-15 Western European, Latin-9. UTF-8 ASCII compatible multi-byte 8-bit Unicode. cp866 ibm866, 866 DOS-specific Cyrillic charset. cp1251 Windows-1251, win-1251, 1251 Windows-specific Cyrillic charset. cp1252 Windows-1252, 1252 Windows specific charset Western European KOI8-R koi8-ru, koi8r Russian. BIG5 950 Traditional Chinese (Taiwan). GB2312 936 Simplified Chinese (National character set). BIG5-HKSCS Big5 with Hong Kong extensions, Traditional Chinese. Shift_JIS SJIS, 932 Japanese EUC-JP EUCJP Japanese ficgs Suggestions www.phpbuilder.com/board/showthread.php?t=10151060 kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_html php.about.com/od/phpfunctions/g/htmlspecialchar.htm www.voormedia.com/en/tools/html-encode-string-conversion-htmlspecialchars.p phphelper.wordpress.com/php-htmlspecialchars/ forums.b2evolution.net/viewtopic.php?t=5109&sid=a05b2bb2baa39af54ef5cf1 ficgs More suggestions This is a collaborative page, you may change the order of these suggestions by registering, then clicking the icons before the titles. railsforphp.com/reference/strings/htmlspecialchars www.nabble.com/-Tickets--7305--broken-php-htmlspecialchars-workaround-neede www.dynamicdrive.com/forums/showthread.php?t=42659 www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_2343 www.fzs8.net/php/php_tutorial/2007-03-18/1280.html www.bigresource.com/PHP-htmlspecialchars-like-magic_quotes--BokyyLII.html algorytmy.pl/doc/php/function.htmlspecialchars.php lists.horde.org/archives/bugs/Week-of-Mon-20080908/038936.html jp.php.net/htmlspecialchars fr.php.net/htmlspecialchars www.freebsd.cz/listserv/archive/users-l/2006q2/016478.html www.thaicreate.com/php-manual/function.htmlspecialchars.html www.kenhmuaban.com/manual/php/func_string_htmlspecialchars.aspx secunia.com/advisories/22653/ www.plus2net.com/php_tutorial/htmlspecialchars.php cvs.moodle.org/contrib/plugins/mod/feedback/edit.php?view=co www.programmingtalk.com/showthread.php?t=44626 archives.free.net.ph/message/20080908.145636.b4faf69c.it.html home.earthlink.net/~kengeddes/cs85/lectureNotes/strings.html objectmix.com/php/481243-re-php-htmlspecialchars.html myphpform.com/validating-forms.php www.goldvision.net/us/en/manuals/phpen/function.htmlspecialchars.html mambo-developer.org/api/administrator/modules/mod_components.php.source.htm
[Games online]
[Last topics]
[Glossary]
[Help]
[Membership]
[About]
[Social network] [Hot news] [Discussions] [Seo forums] [Meet people] [Directory] |
|
![]()
Write upside down ! (works with Twitter, Facebook, MySpace, Youtube, MSN, Yahoo, Bebo, Hi5...) |